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.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final CloseStatus |
| Access | Constructor and Description |
|---|---|
| public | SessionDisconnectEvent(Object
the component that published the event (never source, Message<byte[]> null)the message (never message, String null)the disconnect message sessionId, CloseStatus the status object closeStatus)Create a new SessionDisconnectEvent. |
| public | SessionDisconnectEvent(Object
the component that published the event (never source, Message<byte[]> null)the message (never message, String null)the disconnect message sessionId, CloseStatus the status object closeStatus, Principal the current session user user)Create a new SessionDisconnectEvent. |
| Modifier and Type | Method and Description |
|---|---|
| public CloseStatus | |
| public String | |
| public String | toString()
Overrides org. Returns a String representation of this EventObject. |
| sessionId | back to summary |
|---|---|
| private final String sessionId | |
| status | back to summary |
|---|---|
| private final CloseStatus status | |
| SessionDisconnectEvent | back to summary |
|---|---|
| public SessionDisconnectEvent(Object source, Message<byte[]> message, String sessionId, CloseStatus closeStatus) Create a new SessionDisconnectEvent.
| |
| SessionDisconnectEvent | back to summary |
|---|---|
| public SessionDisconnectEvent(Object source, Message<byte[]> message, String sessionId, CloseStatus closeStatus, Principal user) Create a new SessionDisconnectEvent.
| |
| getCloseStatus | back to summary |
|---|---|
| public CloseStatus getCloseStatus() Return the status with which the session was closed. | |
| getSessionId | back to summary |
|---|---|
| public String getSessionId() Return the session id. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a String representation of this EventObject. | |