|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.server.endpoint.ServerSessionEndpoint
public class ServerSessionEndpoint
The server side representation of a JMS session. A user must not invoke methods of a session concurrently on different threads, however there are situations where multiple threads may access this object concurrently, for instance: - A session can be closed when it's connection is closed by the user which might be called on a different thread. - A session can be closed when the server determines the connection is dead. If the session represents a connection consumer's session then the connection consumer will farm off messages to different sessions obtained from a pool, these may then cancel/ack etc on different threads, but the acks/cancels/etc will end up back here on the connection consumer session instance.
Method Summary | |
---|---|
void |
acknowledgeDeliveries(java.util.List acks)
Acknowledge a list of deliveries |
boolean |
acknowledgeDelivery(Ack ack)
Acknowledge a delivery |
void |
addTemporaryDestination(JBossDestination dest)
Add a temporary destination. |
void |
cancelDeliveries(java.util.List cancels)
Cancel a list of deliveries. |
void |
cancelDelivery(Cancel cancel)
Cancel a delivery |
void |
close()
Close the instance |
long |
closing(long sequence)
Tell the instance to prepare to close |
boolean |
collectDeliveries(java.util.Map map,
boolean firstNode,
java.lang.String queueName)
|
BrowserDelegate |
createBrowserDelegate(JBossDestination jmsDestination,
java.lang.String selector)
|
ConsumerDelegate |
createConsumerDelegate(JBossDestination jmsDestination,
java.lang.String selector,
boolean noLocal,
java.lang.String subscriptionName,
boolean isCC,
boolean autoFlowControl)
|
JBossQueue |
createQueue(java.lang.String name)
Creates a queue identity given a Queue name. |
JBossTopic |
createTopic(java.lang.String name)
Creates a topic identity given a Queue name. |
void |
deleteTemporaryDestination(JBossDestination dest)
Delete a temporary destination |
void |
deliverAnyWaitingDeliveries(java.lang.String queueName)
|
ServerConnectionEndpoint |
getConnectionEndpoint()
|
void |
recoverDeliveries(java.util.List deliveryRecoveryInfos,
java.lang.String oldSessionID)
Send delivery info to the server so the delivery lists can be repopulated. |
void |
replicateDeliveryResponseReceived(long deliveryID)
|
void |
send(JBossMessage message,
boolean checkForDuplicates)
Send a message |
void |
send(JBossMessage message,
boolean checkForDuplicates,
long thisSequence)
|
java.lang.String |
toString()
|
void |
unsubscribe(java.lang.String subscriptionName)
Unsubscribe the client from the durable subscription specified by subscriptionName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, java.lang.String selector, boolean noLocal, java.lang.String subscriptionName, boolean isCC, boolean autoFlowControl) throws JMSException
createConsumerDelegate
in interface SessionEndpoint
JMSException
public BrowserDelegate createBrowserDelegate(JBossDestination jmsDestination, java.lang.String selector) throws JMSException
createBrowserDelegate
in interface SessionEndpoint
JMSException
public JBossQueue createQueue(java.lang.String name) throws JMSException
SessionEndpoint
createQueue
in interface SessionEndpoint
JMSException
public JBossTopic createTopic(java.lang.String name) throws JMSException
SessionEndpoint
createTopic
in interface SessionEndpoint
JMSException
public void close() throws JMSException
Closeable
close
in interface Closeable
JMSException
public long closing(long sequence) throws JMSException
Closeable
closing
in interface Closeable
JMSException
public void send(JBossMessage message, boolean checkForDuplicates) throws JMSException
SessionEndpoint
send
in interface SessionEndpoint
message
- The message to send
JMSException
public void send(JBossMessage message, boolean checkForDuplicates, long thisSequence) throws JMSException
JMSException
public boolean acknowledgeDelivery(Ack ack) throws JMSException
SessionEndpoint
acknowledgeDelivery
in interface SessionEndpoint
JMSException
public void acknowledgeDeliveries(java.util.List acks) throws JMSException
SessionEndpoint
acknowledgeDeliveries
in interface SessionEndpoint
JMSException
public void cancelDelivery(Cancel cancel) throws JMSException
SessionEndpoint
cancelDelivery
in interface SessionEndpoint
JMSException
public void cancelDeliveries(java.util.List cancels) throws JMSException
SessionEndpoint
cancelDeliveries
in interface SessionEndpoint
JMSException
public void recoverDeliveries(java.util.List deliveryRecoveryInfos, java.lang.String oldSessionID) throws JMSException
SessionEndpoint
recoverDeliveries
in interface SessionEndpoint
JMSException
public void addTemporaryDestination(JBossDestination dest) throws JMSException
SessionEndpoint
addTemporaryDestination
in interface SessionEndpoint
JMSException
public void deleteTemporaryDestination(JBossDestination dest) throws JMSException
SessionEndpoint
deleteTemporaryDestination
in interface SessionEndpoint
JMSException
public void unsubscribe(java.lang.String subscriptionName) throws JMSException
SessionEndpoint
unsubscribe
in interface SessionEndpoint
subscriptionName
- the Name of the durable subscription to unsubscribe from
JMSException
- if the unsubscribe failspublic ServerConnectionEndpoint getConnectionEndpoint()
public java.lang.String toString()
toString
in class java.lang.Object
public void deliverAnyWaitingDeliveries(java.lang.String queueName) throws java.lang.Exception
java.lang.Exception
public boolean collectDeliveries(java.util.Map map, boolean firstNode, java.lang.String queueName) throws java.lang.Exception
java.lang.Exception
public void replicateDeliveryResponseReceived(long deliveryID) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |