|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.jms.server.endpoint.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 |
void |
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()
Tell the instance to prepare to close |
BrowserDelegate |
createBrowserDelegate(JBossDestination jmsDestination,
java.lang.String selector)
|
ConsumerDelegate |
createConsumerDelegate(JBossDestination jmsDestination,
java.lang.String selector,
boolean noLocal,
java.lang.String subscriptionName,
boolean isCC)
|
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 |
ServerConnectionEndpoint |
getConnectionEndpoint()
|
void |
recoverDeliveries(java.util.List deliveryRecoveryInfos)
Send delivery info to the server so the delivery lists can be repopulated. |
void |
send(JBossMessage message,
boolean checkForDuplicates)
Send a message |
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)
throws JMSException
createConsumerDelegate in interface SessionEndpointJMSException
public BrowserDelegate createBrowserDelegate(JBossDestination jmsDestination,
java.lang.String selector)
throws JMSException
createBrowserDelegate in interface SessionEndpointJMSException
public JBossQueue createQueue(java.lang.String name)
throws JMSException
SessionEndpoint
createQueue in interface SessionEndpointJMSException
public JBossTopic createTopic(java.lang.String name)
throws JMSException
SessionEndpoint
createTopic in interface SessionEndpointJMSException
public void close()
throws JMSException
Closeable
close in interface CloseableJMSException
public long closing()
throws JMSException
Closeable
closing in interface CloseableJMSException
public void send(JBossMessage message,
boolean checkForDuplicates)
throws JMSException
SessionEndpoint
send in interface SessionEndpointmessage - The message to send
JMSException
public void acknowledgeDelivery(Ack ack)
throws JMSException
SessionEndpoint
acknowledgeDelivery in interface SessionEndpointJMSException
public void acknowledgeDeliveries(java.util.List acks)
throws JMSException
SessionEndpoint
acknowledgeDeliveries in interface SessionEndpointJMSException
public void cancelDelivery(Cancel cancel)
throws JMSException
SessionEndpoint
cancelDelivery in interface SessionEndpointcancel -
JMSException
public void cancelDeliveries(java.util.List cancels)
throws JMSException
SessionEndpoint
cancelDeliveries in interface SessionEndpointJMSException
public void recoverDeliveries(java.util.List deliveryRecoveryInfos)
throws JMSException
SessionEndpoint
recoverDeliveries in interface SessionEndpointJMSException
public void addTemporaryDestination(JBossDestination dest)
throws JMSException
SessionEndpoint
addTemporaryDestination in interface SessionEndpointJMSException
public void deleteTemporaryDestination(JBossDestination dest)
throws JMSException
SessionEndpoint
deleteTemporaryDestination in interface SessionEndpointJMSException
public void unsubscribe(java.lang.String subscriptionName)
throws JMSException
SessionEndpoint
unsubscribe in interface SessionEndpointsubscriptionName - the Name of the durable subscription to unsubscribe from
JMSExceptionpublic ServerConnectionEndpoint getConnectionEndpoint()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||