|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.client.intravm.IntravmJmsSessionStub
The client stub implementation for the intra-JVM JMS server.
This delegates directly to a JmsServerSession instance.
| Method Summary | |
void |
acknowledgeMessage(long clientId,
java.lang.String messageId)
Acknowledge the following message If this method does not complete then throw JMSException. |
void |
beforeClose()
This method is called before the call to close, so that the
stub can do some local clean up |
void |
close()
Close and release any resource allocated to this session. |
void |
commit()
Commit the session which will send all the published messages and acknowledge all received messages |
void |
commit(java.lang.String[] messages)
Commit messages on the session which will send all specified published messages and acknowledge all specified received messages |
void |
createBrowser(JmsQueue queue,
long clientId,
java.lang.String selector)
Create a queue browser for this session. |
void |
createPublisher(JmsTopic topic)
Create a publisher endpoint for this session. |
void |
createQueue(JmsQueue queue)
Create a queue with the specified name. |
void |
createReceiver(JmsQueue queue,
long clientId,
java.lang.String selector)
Create a receiver endpoint for this session. |
void |
createSender(JmsQueue queue)
Create a sender endpoint for this session. |
void |
createSubscriber(JmsTopic topic,
java.lang.String name,
long clientId,
java.lang.String selector,
boolean noLocal)
Create a subscriber endpoint for this session. |
void |
createTopic(JmsTopic topic)
Create a topic with the specified name. |
void |
deleteBrowser(long clientId)
Delete the queue browser associated with the specified queue from the session. |
void |
deleteReceiver(long clientId)
Delete the receiver with the corresponding client id. |
void |
deleteSubscriber(long clientId)
Delete the subscriber associated with the sepcified identity. |
void |
enableAsynchronousDelivery(long clientId,
long id,
boolean enable)
Enable or disable asynchronous message delivery for a particular consumer |
java.lang.String |
getClientId()
Return the client id associated with this session. |
protected Logger |
getLogger()
Return a reference to the logger |
java.lang.String |
getSessionId()
Return a copy of the session identity. |
void |
onMessage(javax.jms.Message message)
|
void |
onMessages(java.util.Vector messages)
Send the specified collection of messages to the client |
javax.jms.Message |
receiveMessage(long clientId,
long wait)
Return the next message for the specified client. |
java.util.Vector |
receiveMessages(long clientId,
int count)
Return a collection of messages from the specified client upto the nominated count. |
void |
recover()
Recover the session. |
void |
rollback()
Rollback the session, which will not acknowledge any of the sent messages |
void |
rollback(java.lang.String[] messages)
Rollback messages on the session, which will not acknowledge any of the specified sent messages |
void |
sendMessage(javax.jms.Message message)
Send the specified message to the server. |
void |
sendMessages(java.util.Vector messages)
Send the specified messages to the server. |
void |
setMessageListener(JmsMessageListener listener)
Set the listener for this session. |
void |
startMessageDelivery()
Start message delivery to this session. |
void |
stopMessageDelivery()
Stop message delivery to this session. |
void |
unsubscribe(java.lang.String name)
Unsubscribe a durable subscription |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getClientId()
throws javax.jms.JMSException
JmsSessionStubIfcgetClientId in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException -
public java.lang.String getSessionId()
throws javax.jms.JMSException
JmsSessionStubIfcgetSessionId in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException -
public void beforeClose()
throws javax.jms.JMSException
JmsSessionStubIfcclose, so that the
stub can do some local clean upbeforeClose in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException -
public void close()
throws javax.jms.JMSException
JmsSessionStubIfcclose in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException -
public void acknowledgeMessage(long clientId,
java.lang.String messageId)
throws javax.jms.JMSException
JmsSessionStubIfcacknowledgeMessage in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclientId - the identity ofthe clientmessageId - the message identity to ackJMSException -
public void sendMessage(javax.jms.Message message)
throws javax.jms.JMSException
JmsSessionStubIfcsendMessage in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcmessage - message to sendJMSException -
public void sendMessages(java.util.Vector messages)
throws javax.jms.JMSException
JmsSessionStubIfcsendMessages in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcmessages - - messages to sendJMSException -
public javax.jms.Message receiveMessage(long clientId,
long wait)
throws javax.jms.JMSException
JmsSessionStubIfcreceiveMessage in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclient - the client identitywait - the number of ms to wait. -1
means wait indefinitely.
public java.util.Vector receiveMessages(long clientId,
int count)
throws javax.jms.JMSException
JmsSessionStubIfcreceiveMessages in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclient - the client identitycount - max messages to returnJMSException -
public void createQueue(JmsQueue queue)
throws javax.jms.JMSException
JmsSessionStubIfccreateQueue in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcqueue - queue to createJMSException -
public void createTopic(JmsTopic topic)
throws javax.jms.JMSException
JmsSessionStubIfccreateTopic in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfctopic - topic to createJMSException -
public void createReceiver(JmsQueue queue,
long clientId,
java.lang.String selector)
throws javax.jms.JMSException
JmsSessionStubIfcYou cannot create more than one receiver for the same destination
createReceiver in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcqueue - receiver destinationclientId - the session allocated identifier of
this consumerselector - message selector. This may be null.JMSException. -
public void createSender(JmsQueue queue)
throws javax.jms.JMSException
JmsSessionStubIfcYou cannot create more than one receiver for the same destination
createSender in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcqueue - receiver destinationJMSException. -
public void createBrowser(JmsQueue queue,
long clientId,
java.lang.String selector)
throws javax.jms.JMSException
JmsSessionStubIfcYou cannot create more than one queue browser for the same queue in a single session.
createBrowser in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcqueue - queue to browseclientId - the client identityselector - message selector. This may be nullJMSException -
public void deleteReceiver(long clientId)
throws javax.jms.JMSException
JmsSessionStubIfcdeleteReceiver in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclientId - identity of the receiver to deleteJMSException -
public void deleteBrowser(long clientId)
throws javax.jms.JMSException
JmsSessionStubIfcdeleteBrowser in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclientId - the id of the browserJMSException -
public void createSubscriber(JmsTopic topic,
java.lang.String name,
long clientId,
java.lang.String selector,
boolean noLocal)
throws javax.jms.JMSException
JmsSessionStubIfcYou cannot create more than one subscriber for the same destination
createSubscriber in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfctopic - subscriber destinationname - name of the consumer associated with
the subscriber. This may be null.clientId - the session allocated identifier of
this consumerselector - message selector. This may be null.noLocal - inhibit consuming messages on same
connection.JMSException. -
public void createPublisher(JmsTopic topic)
throws javax.jms.JMSException
JmsSessionStubIfcYou cannot create more than one publisher for the same destination
createPublisher in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfctopic - receiver destinationJMSException. -
public void deleteSubscriber(long clientId)
throws javax.jms.JMSException
JmsSessionStubIfcdeleteSubscriber in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclientid - the client identityJMSException. -
public void unsubscribe(java.lang.String name)
throws javax.jms.JMSException
JmsSessionStubIfcunsubscribe in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcname - the name used to identify the
subscriptionJMSException - if the subscription cannot be removed
public void stopMessageDelivery()
throws javax.jms.JMSException
JmsSessionStubIfcstopMessageDelivery in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException -
public void startMessageDelivery()
throws javax.jms.JMSException
JmsSessionStubIfcstartMessageDelivery in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - public void setMessageListener(JmsMessageListener listener)
JmsSessionStubIfcsetMessageListener in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfclistener -
public void enableAsynchronousDelivery(long clientId,
long id,
boolean enable)
throws javax.jms.JMSException
JmsSessionStubIfcenableAsynchronousDelivery in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcclientId - - the id of the client to checkid - - the message id of the last delivered messageenable - - true to enable; false to disable
public void recover()
throws javax.jms.JMSException
JmsSessionStubIfcrecover in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - - if we are unable to recover
public void commit(java.lang.String[] messages)
throws javax.jms.JMSException
JmsSessionStubIfccommit in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - - if we cannot commit the session
public void commit()
throws javax.jms.JMSException
JmsSessionStubIfccommit in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - - if we cannot commit the session
public void rollback(java.lang.String[] messages)
throws javax.jms.JMSException
JmsSessionStubIfcrollback in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - - if there is an error with this operation
public void rollback()
throws javax.jms.JMSException
JmsSessionStubIfcrollback in interface JmsSessionStubIfcjrun.jms.core.client.JmsSessionStubIfcJMSException - - if there is an error with this operationpublic void onMessage(javax.jms.Message message)
public void onMessages(java.util.Vector messages)
JmsMessageListeneronMessages in interface JmsMessageListenerjrun.jms.core.client.JmsMessageListenermessages - - collection of MessageHandle objectsprotected Logger getLogger()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||