jadex.micro.examples.messagequeue.replicated.IMessageQueueReplicationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-micro Show documentation
Show all versions of jadex-applications-micro Show documentation
The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.
package jadex.micro.examples.messagequeue.replicated;
import jadex.commons.future.ISubscriptionIntermediateFuture;
import jadex.micro.examples.messagequeue.Event;
/**
* Message queue interface for the replication of distributed message queues.
*/
public interface IMessageQueueReplicationService
{
/**
* Subscribe to a specific topic. New events that fit to the topic are forwarded to all replication subscribers as intermediate results. A subscribe can unsubscribe by terminating the future.
*
* @param topic The topic.
* @return The events.
*/
// @Timeout(Timeout.NONE)
public ISubscriptionIntermediateFuture subscribeForReplication(String topic);
/**
* Returns the services unique Id.
*
* @return the service Id.
*/
public String getId();
}