Package com.iizix.server
Class ServerSession
- java.lang.Object
-
- com.iizix.server.AbstractEndPoint
-
- com.iizix.server.ServerSession
-
- All Implemented Interfaces:
IServerWebSocketCommListener
,ITransactionCreator
,WebSocketCommListener
,IEndPoint
,IRootPropTransactionSender
public class ServerSession extends AbstractEndPoint
The main class for an Server session running in the Server.- Author:
- Christopher Mindus
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.iizix.server.IEndPoint
IEndPoint.Type
-
-
Field Summary
-
Fields inherited from class com.iizix.server.AbstractEndPoint
DEBUG, endPointPropertyManager, endPointType, name, propTransSender, root, server, serverSessionID, sessionInfo, threadGroup, worker
-
Fields inherited from interface com.iizix.server.IEndPoint
DEFAULT_HEARTBEAT_INTERVAL, STORAGE_NAME
-
Fields inherited from interface com.iizix.nio.WebSocketCommListener
CC_ABNORMAL_CLOSURE, CC_GOING_AWAY, CC_INTERNAL_ERROR, CC_INVALID_PAYLOAD_DATA, CC_MANDATORY_EXT, CC_MESSAGE_TOO_BIG, CC_NO_STATUS_RECEIVED, CC_NORMAL, CC_POLICY_VIOLATION, CC_PROTOCOL_ERROR, CC_SERVICE_RESTART, CC_TLS_HANDSHAKE, CC_TRY_AGAIN_LATER, CC_UNSUPPORTED_DATA
-
-
Constructor Summary
Constructors Constructor Description ServerSession(long sessionID, IWebSocketComm comm, ServerShell server, java.lang.ThreadGroup serverThreadGroup)
Creates a new ServerSession instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
processQueuedTransaction(int code, ReadTransaction trans)
This method must be implemented in all extending classes.-
Methods inherited from class com.iizix.server.AbstractEndPoint
createTransaction, dispose, getClientContextMenuReference, getEndPoint, getEndPointName, getEndPointType, getHeartBeatInterval, getProperties, getPropertyManager, getServer, getServerSessionID, getSessionInfo, getWebSocketCommListener, isConnected, onClientPropsCreated, onCommClosed, onCommClosing, onCommConnected, onCommData, onCommData, onCommError, onCommHeartBeat, onCommOpen, onCommTimeout, onSendHeartHeat, onSessionConnected, paramString, sendTransaction, toString
-
-
-
-
Constructor Detail
-
ServerSession
public ServerSession(long sessionID, IWebSocketComm comm, ServerShell server, java.lang.ThreadGroup serverThreadGroup) throws java.io.IOException
Creates a new ServerSession instance.- Throws:
java.io.IOException
- if the Worker cannot be created.
-
-
Method Detail
-
processQueuedTransaction
protected boolean processQueuedTransaction(int code, ReadTransaction trans)
This method must be implemented in all extending classes.- Specified by:
processQueuedTransaction
in classAbstractEndPoint
- Parameters:
code
- The transaction code.trans
- The transaction.- Returns:
- true if the transaction has been processed, false otherwise.
-
-