| Package | Description |
|---|---|
| org.granite.client.messaging |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTopicAgent |
class |
Consumer
Consumer class that allows to receive messages from a remote pub/sub destination
Consumer consumer = new Consumer(messagingChannel, "myDestination", "myTopic");
consumer.subscribe().get();
consumer.addMessageListener(new TopicMessageListener() {
public void onMessage(TopicMessageEvent event) {
System.out.println("Received: " + event.getData());
}
});
|
class |
Producer
Producer class that allows to publish messages on a remote pub/sub destination
All
Producer.publish(java.lang.Object, org.granite.client.messaging.ResponseListener...) methods are asynchronous and won't block the thread initiating the call. |