パッケージ org.wcardinal.io
クラス Endpoint
java.lang.Object
org.wcardinal.io.Endpoint
- すべての実装されたインタフェース:
ControllerIo,MessageSender
Central class of endpoints.
-
コンストラクタの概要
コンストラクタコンストラクタ説明Endpoint(String sessionId, String subSessionId, Scheduler scheduler, MessageReceiver handler, IdleChecker checker, WCardinalConfiguration configuration) -
メソッドの概要
修飾子とタイプメソッド説明voidclose()voidflush()longReturns the idle time.longReturns the last accessed time.longReturns the maximum idle time.Returns the session ID.Returns the sub session ID.booleanReturns true once a network connection has established regardless of whether a network connection is now available or not.booleanReturns true if a network connection seems to be available.voidvoidvoidsend(RequestMessage message) booleanset(EndpointSession session) booleantouch()Returns true if successfully the last access time is updated.booleanunset(EndpointSession session)
-
コンストラクタの詳細
-
Endpoint
public Endpoint(String sessionId, String subSessionId, Scheduler scheduler, MessageReceiver handler, IdleChecker checker, WCardinalConfiguration configuration)
-
-
メソッドの詳細
-
set
-
unset
-
close
public void close() -
onMessage
-
onMessage
-
send
- 定義:
sendインタフェース内MessageSender
-
flush
public void flush() -
touch
public boolean touch()Returns true if successfully the last access time is updated.- 定義:
touchインタフェース内ControllerIo- 戻り値:
- true if succeeded
-
getIdleTime
public long getIdleTime()インタフェースからコピーされた説明:ControllerIoReturns the idle time.- 定義:
getIdleTimeインタフェース内ControllerIo- 戻り値:
- the idle time
-
getLastAccessedTime
public long getLastAccessedTime()インタフェースからコピーされた説明:ControllerIoReturns the last accessed time.- 定義:
getLastAccessedTimeインタフェース内ControllerIo- 戻り値:
- the last accessed time
-
getMaximumIdleTime
public long getMaximumIdleTime()インタフェースからコピーされた説明:ControllerIoReturns the maximum idle time.- 定義:
getMaximumIdleTimeインタフェース内ControllerIo- 戻り値:
- the maximum idle time
-
hasConnection
public boolean hasConnection()インタフェースからコピーされた説明:ControllerIoReturns true if a network connection seems to be available. An availability of a network connection is not guaranteed even when this method returns true.- 定義:
hasConnectionインタフェース内ControllerIo- 戻り値:
- true if a network connection seems to be available
-
hadConnection
public boolean hadConnection()インタフェースからコピーされた説明:ControllerIoReturns true once a network connection has established regardless of whether a network connection is now available or not.- 定義:
hadConnectionインタフェース内ControllerIo- 戻り値:
- true once a network connection has established regardless of whether a network connection is now available or not
-
getSessionId
インタフェースからコピーされた説明:ControllerIoReturns the session ID.- 定義:
getSessionIdインタフェース内ControllerIo- 戻り値:
- the session ID
-
getSubSessionId
インタフェースからコピーされた説明:ControllerIoReturns the sub session ID.- 定義:
getSubSessionIdインタフェース内ControllerIo- 戻り値:
- the sub session ID
-