org.granite.gravity.adapters
Interface JMSClient


public interface JMSClient


Field Summary
static String JMSCLIENT_KEY_PREFIX
           
 
Method Summary
 void close()
           
 void connect()
           
 boolean hasActiveConsumer()
           
 void send(AsyncMessage message)
           
 void send(Map<String,?> params, Object msg, long timeToLive)
           
 void subscribe(CommandMessage message)
           
 void subscribe(String selector, String destination, String topic)
           
 void unsubscribe(CommandMessage message)
           
 

Field Detail

JMSCLIENT_KEY_PREFIX

static final String JMSCLIENT_KEY_PREFIX
See Also:
Constant Field Values
Method Detail

connect

void connect()
             throws Exception
Throws:
Exception

subscribe

void subscribe(CommandMessage message)
               throws Exception
Throws:
Exception

subscribe

void subscribe(String selector,
               String destination,
               String topic)
               throws Exception
Throws:
Exception

unsubscribe

void unsubscribe(CommandMessage message)
                 throws Exception
Throws:
Exception

send

void send(Map<String,?> params,
          Object msg,
          long timeToLive)
          throws Exception
Throws:
Exception

send

void send(AsyncMessage message)
          throws Exception
Throws:
Exception

hasActiveConsumer

boolean hasActiveConsumer()

close

void close()
           throws Exception
Throws:
Exception