public class ReplicatedMessageQueueAgent extends Object implements IMessageQueueReplicableService, IMessageQueueReplicationService
| Constructor and Description |
|---|
ReplicatedMessageQueueAgent() |
| Modifier and Type | Method and Description |
|---|---|
void |
agentBody() |
void |
agentCreated()
Called on agent creation.
|
String |
getId()
Returns the services unique Id.
|
IFuture<Void> |
publish(String topic,
Event event)
Publish a new event to the queue.
|
IFuture<Void> |
publish(String topic,
Event event,
Boolean replicate)
Publish a new event to the queue.
|
ISubscriptionIntermediateFuture<Event> |
subscribe(String topic)
Subscribe to a specific topic.
|
ISubscriptionIntermediateFuture<Event> |
subscribeForReplication(String topic)
Subscribe to a specific topic.
|
public void agentCreated()
public void agentBody()
public ISubscriptionIntermediateFuture<Event> subscribeForReplication(String topic)
subscribeForReplication in interface IMessageQueueReplicationServicetopic - The topic.public ISubscriptionIntermediateFuture<Event> subscribe(String topic)
subscribe in interface IMessageQueueServicetopic - The topic.public IFuture<Void> publish(String topic, Event event, Boolean replicate)
publish in interface IMessageQueueReplicableServicetopic - The topic.event - The event to publish.replicate - Should the event be replicated among all message queues?public IFuture<Void> publish(String topic, Event event)
publish in interface IMessageQueueServicetopic - The topic.event - The event to publish.public String getId()
getId in interface IMessageQueueReplicationServiceCopyright © 2012. All Rights Reserved.