org.granite.client.messaging
Class Producer

java.lang.Object
  extended by org.granite.client.messaging.AbstractTopicAgent
      extended by org.granite.client.messaging.Producer
All Implemented Interfaces:
TopicAgent

public class Producer
extends AbstractTopicAgent

Author:
Franck WOLFF

Field Summary
 
Fields inherited from class org.granite.client.messaging.AbstractTopicAgent
channel, defaultHeaders, destination, topic
 
Constructor Summary
Producer(MessagingChannel channel, String destination, String topic)
           
 
Method Summary
 ResponseMessageFuture publish(Object message, Map<String,Object> headers, ResponseListener... listeners)
           
 ResponseMessageFuture publish(Object message, ResponseListener... listeners)
           
 
Methods inherited from class org.granite.client.messaging.AbstractTopicAgent
getChannel, getDefaultHeaders, getDestination, getTopic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Producer

public Producer(MessagingChannel channel,
                String destination,
                String topic)
Method Detail

publish

public ResponseMessageFuture publish(Object message,
                                     ResponseListener... listeners)

publish

public ResponseMessageFuture publish(Object message,
                                     Map<String,Object> headers,
                                     ResponseListener... listeners)