@SessionStateInterface public interface SentinelCommonSessionState extends NullSentinelSessionState
Modifier and Type | Field and Description |
---|---|
static boolean |
_initialSessionHasEnded |
static SessionType |
_initialSessionType |
Modifier and Type | Method and Description |
---|---|
com.opencloud.sentinel.common.SentinelProtocol |
getProtocol()
Returns the current protocol in use by the service.
|
SentinelSelectionKey |
getSentinelSelectionKey()
Get the sentinel selection key associated with this session.
|
boolean |
getSessionHasEnded()
Check if the current session has ended or not.
|
SessionType |
getSessionType()
Get the type of this session.
|
java.lang.String |
getSubscriber()
Get the subscriber associated with the current session.
|
void |
setProtocol(com.opencloud.sentinel.common.SentinelProtocol protocol)
Sets the current protocol in use by the service.
|
void |
setSentinelSelectionKey(SentinelSelectionKey SentinelSelectionKey)
Set the current sentinel selection key associated with this session.
|
void |
setSessionHasEnded(boolean SessionHasEnded)
Record that the session has ended.
|
void |
setSessionType(SessionType SessionType)
Set the session type
|
void |
setSubscriber(java.lang.String Subscriber)
set the Subscriber for this session
|
static final SessionType _initialSessionType
static final boolean _initialSessionHasEnded
void setSubscriber(java.lang.String Subscriber)
java.lang.String getSubscriber()
void setSentinelSelectionKey(SentinelSelectionKey SentinelSelectionKey)
getSentinelSelectionKey()
and update the sentinel selection key that is returned.SentinelSelectionKey getSentinelSelectionKey()
setSentinelSelectionKey
.void setSessionType(SessionType SessionType)
SessionType getSessionType()
void setSessionHasEnded(boolean SessionHasEnded)
boolean getSessionHasEnded()
void setProtocol(com.opencloud.sentinel.common.SentinelProtocol protocol)
com.opencloud.sentinel.common.SentinelProtocol getProtocol()
Copyright © OpenCloud. All Rights Reserved.