public abstract class AbstractSession extends IdentifiableObject implements ISession
ISession
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractSession(String prefix,
long id,
String name,
ConcurrentMap<Object,Object> attributes)
Constructs the base implementation of the
ISession interface. |
Modifier and Type | Method and Description |
---|---|
ConcurrentMap<Object,Object> |
getAttributes()
Returns the thread safe map of the user-defined attributes associated with this session.
|
getId, getName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allocate, close, dirtyClose, execute, executenf, 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, suspendWrite
protected AbstractSession(String prefix, long id, String name, ConcurrentMap<Object,Object> attributes)
ISession
interface.prefix
- the prefix used to generate string representation of this
objectid
- the id of the objectname
- the name of the object or null
if the name should
be auto generatedattributes
- the attributes for this session, or null
if this
session should have its own copy of attributespublic ConcurrentMap<Object,Object> getAttributes()
ISession
getAttributes
in interface ISession
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.