final class DirectSession extends BaseSession
Session
interface, built upon
BaseSession
. This implementation is to be used for direct
connections between network nodes.
This class implements the superclass' abstract preprocess(Message)
method as a NOP, since context multiplexing is not necessary for direct
connections.
LOG
ADDRESS_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 |
---|
DirectSession(Queue queue,
java.lang.Object context)
Constructor which assigns a context ID of 0 to the session, since
context multiplexing is not needed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
preprocess(Message message)
Implement parent's abstract method as a NOP.
|
addSessionListener, addSessionListener, cleanupContext, echo, echoReply, end, forward, getContext, getContextID, getException, getNodeAddress, getQueue, getRemoteAddress, isRunning, registerSynchronizer, removeSessionListener, sendInitializationEvent, sendTerminationEvent, setContext, terminate, transact
DirectSession(Queue queue, java.lang.Object context)
queue
- Message transport.context
- Security context. Should be null
on leaf nodes
and non-null
on router nodes.protected final void preprocess(Message message)
preprocess
in class BaseSession
message
- Message to be processed.