public class DefaultSessionStructureFactory extends Object implements ISessionStructureFactory
| Modifier and Type | Field and Description |
|---|---|
static DefaultSessionStructureFactory |
DEFAULT
Default session's structure factory.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultSessionStructureFactory()
Constructs default session's structure factory.
|
| Modifier and Type | Method and Description |
|---|---|
IByteBufferAllocator |
getAllocator()
Gets a byte buffer allocator that will used by the created session.
|
ConcurrentMap<Object,Object> |
getAttributes()
Gets an attributes that will be used by the created session.
|
Executor |
getExecutor()
Returns an executor that will be used by engine-driven sessions to execute
delegated tasks required by the sessions to complete operations that block, or
may take an extended period of time to complete.
|
ITimeoutModel |
getTimeoutModel()
Returns a timeout model that will be used by engine-driven datagram sessions
to retransmit lost packets.
|
ITimer |
getTimer()
Returns a timer implementation that will be used by the session timer to
schedule events and tasks.
|
public static final DefaultSessionStructureFactory DEFAULT
protected DefaultSessionStructureFactory()
public IByteBufferAllocator getAllocator()
By default it simply returns DefaultAllocator.DEFAULT
getAllocator in interface ISessionStructureFactorypublic ConcurrentMap<Object,Object> getAttributes()
getAttributes in interface ISessionStructureFactorynull, so the session will be responsible for creation of its own copy of attributespublic Executor getExecutor()
getExecutor in interface ISessionStructureFactorynull, so the default executor should be used by the sessionpublic ITimer getTimer()
getTimer in interface ISessionStructureFactorynull, so the session timer will not be supported by the sessionpublic ITimeoutModel getTimeoutModel()
getTimeoutModel in interface ISessionStructureFactorynull, so the default timeout model should be used by the sessionCopyright © 2017–2022 SNF4J.ORG. All rights reserved.