final class RequesterSession extends VirtualSession
This class overrides the parent's terminate() method to make a
remote call to trigger cleanup of the virtual session on the other side of
the network connection. It also overrides cleanupContext() to do
nothing, to avoid terminating the current user context.
LOGADDRESS_REPLY, ADDRESS_REQUEST, BEGIN_REPLY, ECHO, ECHO_REPLY, END_REPLY, INIT_CONVERSATION, INIT_REPLY, INIT_ROUTER, INIT_STANDARD, REPLY_ASYNC, REPLY_EXCEPTION_ASYNC, REPLY_EXCEPTION_SYNC, REPLY_SYNC, REQUEST_ASYNCH, REQUEST_SYNCH, UNKNOWN| Constructor and Description |
|---|
RequesterSession(Queue queue,
java.lang.Object context,
int peerID,
int contextID)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupContext()
Override the parent's implementation to do nothing.
|
protected void |
preprocess(Message message)
Update the security context ID of the given message to this session's
(peer) context ID, before it is sent.
|
void |
terminate()
Terminate the virtual network session on the remote side of the
connection, then perform termination processing for the session on this
side.
|
getLocalContextID, registerSynchronizeraddSessionListener, addSessionListener, echo, echoReply, end, forward, getContext, getContextID, getException, getNodeAddress, getQueue, getRemoteAddress, isRunning, removeSessionListener, sendInitializationEvent, sendTerminationEvent, setContext, transactRequesterSession(Queue queue, java.lang.Object context, int peerID, int contextID)
queue - Message transport.context - Security context. Must not be null.peerID - Unique identifier for this session's peer security context on
the other side of the network connection.contextID - Unique identifier for this session's local security context on
the this side of the network connection.public void terminate()
terminate in interface Sessionterminate in class BaseSessionprotected final void cleanupContext()
cleanupContext in class BaseSessionprotected void preprocess(Message message)
preprocess in class VirtualSessionmessage - Message to process.