public interface IEngineSession extends ISession
IEngine interface.| Modifier and Type | Method and Description |
|---|---|
void |
beginHandshake()
Initiates handshaking (initial or renegotiation) on the protocol engine
driving this session.
|
void |
beginLazyHandshake()
Initiates lazy handshaking (initial or renegotiation) on the protocol
engine driving this session.
|
Object |
getEngineSession()
Returns an object representing a session in the protocol engine driving this
session.
|
Executor |
getExecutor()
Returns the executor that is used to execute delegated tasks
required by this session to complete operations that block, or may take
an extended period of time to complete.
|
void |
setExecutor(Executor executor)
Sets the executor that will be used to execute delegated tasks required
by this session to complete operations that block, or may take an
extended period of time to complete.
|
allocate, close, dirtyClose, execute, executenf, getAttributes, getCloseFuture, getCodecPipeline, getConfig, getCreateFuture, getCreationTime, getEndFuture, getHandler, getId, getLastIoTime, getLastReadTime, getLastWriteTime, getLocalAddress, getName, getOpenFuture, getParent, getReadBytes, getReadBytesThroughput, getReadyFuture, getRemoteAddress, getState, getTimer, getWrittenBytes, getWrittenBytesThroughput, isDataCopyingOptimized, isOpen, isReadSuspended, isWriteSuspended, quickClose, release, resumeRead, resumeWrite, suspendRead, suspendWritevoid setExecutor(Executor executor)
executor - the new executor, or null to use the executor
configured in the selector loop that handles this session.Executor getExecutor()
By default, this method returns the executor configured in the selector
loop that handles this session, or null.
null if the executor is
undefined (i.e. the session is not associated with the selector
loop and the executor is not set)void beginHandshake()
This method is not needed for the initial handshake, as the wrap and
unwrap methods of the protocol engine should initiate it if the
handshaking has not already begun.
The operation is asynchronous.
void beginLazyHandshake()
write,
writenf, beginHandshake.
This method is not needed for the initial handshake, as the
wrap and unwrap methods of the protocol engine
should initiate it if the handshaking has not already begun.
The operation is asynchronous.
Object getEngineSession()
UnsupportedOperationException - if the protocol engine driving this
session does not support a session.Copyright © 2017–2022 SNF4J.ORG. All rights reserved.