com.caucho.jms.cluster
Interface ServerDestination

All Known Implementing Classes:
ServerQueue, ServerTopic

public interface ServerDestination

Implements a cluster receive queue.


Method Summary
 void acknowledge(java.lang.String msgId)
           
 MessageImpl createMessage(int type)
           
 boolean hasMessage(java.lang.String subscription)
           
 MessageImpl receiveCluster(java.lang.String subscription, boolean isAutoAck)
           
 void removeCluster(java.lang.String id)
           
 void rollback(java.lang.String msgId)
           
 void sendCluster(MessageImpl msg, long timeout)
           
 void sendClusterBackup(MessageImpl msg, long timeout)
           
 

Method Detail

createMessage

MessageImpl createMessage(int type)

sendCluster

void sendCluster(MessageImpl msg,
                 long timeout)
                 throws JMSException
Throws:
JMSException

sendClusterBackup

void sendClusterBackup(MessageImpl msg,
                       long timeout)
                       throws JMSException
Throws:
JMSException

receiveCluster

MessageImpl receiveCluster(java.lang.String subscription,
                           boolean isAutoAck)
                           throws JMSException
Throws:
JMSException

removeCluster

void removeCluster(java.lang.String id)
                   throws JMSException
Throws:
JMSException

hasMessage

boolean hasMessage(java.lang.String subscription)

acknowledge

void acknowledge(java.lang.String msgId)

rollback

void rollback(java.lang.String msgId)