/** * {@inheritDoc} * Increments the local statistics for the number of published * messages. * * @throws Exception */ @Override public void beforeRun() throws Exception { TopicService service = getService(); service.incrementPublishes(name); }
@Override public LocalTopicStats getLocalTopicStats() { return getLocalTopicStatsInternal(); } }
public LocalTopicStats getLocalTopicStatsInternal() { return topicService.getLocalTopicStats(name); }
@Override public void publish(E message) { Operation operation = new PublishOperation(getName(), toData(message)) .setPartitionId(partitionId); InternalCompletableFuture f = invokeOnPartition(operation); f.join(); } }
@Override public void publish(E message) { publishInternal(message); }
@Override public void shutdown(boolean terminate) { reset(); }
@Override protected Operation prepareOperation() { return new PublishOperation(parameters.name, parameters.message); }
public Lock getOrderLock(String key) { int index = getOrderLockIndex(key); return orderingLocks[index]; }
@Override public boolean removeMessageListener(String registrationId) { return removeMessageListenerInternal(registrationId); }
public boolean removeMessageListenerInternal(final String registrationId) { return topicService.removeMessageListener(name, registrationId); }
public String addMessageListenerInternal(MessageListener listener) { return topicService.addMessageListener(name, listener, false); }
@Override public void publish(E message) { Operation operation = new PublishOperation(getName(), toData(message)) .setPartitionId(partitionId); InternalCompletableFuture f = invokeOnPartition(operation); f.join(); } }
/** * {@inheritDoc} * Increments the local statistics for the number of published * messages. * * @throws Exception */ @Override public void beforeRun() throws Exception { TopicService service = getService(); service.incrementPublishes(name); }
@Override public LocalTopicStats getLocalTopicStats() { return getLocalTopicStatsInternal(); } }
public LocalTopicStats getLocalTopicStatsInternal() { return topicService.getLocalTopicStats(name); }
@Override public void publish(E message) { publishInternal(message); }
@Override public void shutdown(boolean terminate) { reset(); }
@Override protected Operation prepareOperation() { return new PublishOperation(parameters.name, parameters.message); }
public Lock getOrderLock(String key) { int index = getOrderLockIndex(key); return orderingLocks[index]; }
@Override public boolean removeMessageListener(String registrationId) { return removeMessageListenerInternal(registrationId); }