public class SessionDisconnectEvent extends AbstractSubProtocolEvent
Note that this event may be raised more than once for a single session and therefore event consumers should be idempotent and ignore a duplicate event.
| Constructor and Description | 
|---|
SessionDisconnectEvent(java.lang.Object source,
                      Message<byte[]> message,
                      java.lang.String sessionId,
                      CloseStatus closeStatus)
Create a new SessionDisconnectEvent. 
 | 
SessionDisconnectEvent(java.lang.Object source,
                      Message<byte[]> message,
                      java.lang.String sessionId,
                      CloseStatus closeStatus,
                      java.security.Principal user)
Create a new SessionDisconnectEvent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CloseStatus | 
getCloseStatus()
Return the status with which the session was closed. 
 | 
java.lang.String | 
getSessionId()
Return the session id. 
 | 
java.lang.String | 
toString()  | 
getMessage, getUsergetTimestamppublic SessionDisconnectEvent(java.lang.Object source,
                              Message<byte[]> message,
                              java.lang.String sessionId,
                              CloseStatus closeStatus)
source - the component that published the event (never null)message - the message (never null)sessionId - the disconnect messagecloseStatus - the status objectpublic SessionDisconnectEvent(java.lang.Object source,
                              Message<byte[]> message,
                              java.lang.String sessionId,
                              CloseStatus closeStatus,
                              @Nullable
                              java.security.Principal user)
source - the component that published the event (never null)message - the message (never null)sessionId - the disconnect messagecloseStatus - the status objectuser - the current session userpublic java.lang.String getSessionId()
public CloseStatus getCloseStatus()
public java.lang.String toString()
toString in class AbstractSubProtocolEvent