Class SessionEventImpl
- java.lang.Object
-
- io.smallrye.reactive.messaging.mqtt.session.impl.SessionEventImpl
-
- All Implemented Interfaces:
SessionEvent
public class SessionEventImpl extends Object implements SessionEvent
An event of a session state change.
-
-
Constructor Summary
Constructors Constructor Description SessionEventImpl(SessionState sessionState, Throwable reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
The (optional) cause of change.SessionState
getSessionState()
The new state of the session.
-
-
-
Constructor Detail
-
SessionEventImpl
public SessionEventImpl(SessionState sessionState, Throwable reason)
-
-
Method Detail
-
getSessionState
public SessionState getSessionState()
The new state of the session.- Specified by:
getSessionState
in interfaceSessionEvent
- Returns:
- The state.
-
getCause
public Throwable getCause()
The (optional) cause of change.- Specified by:
getCause
in interfaceSessionEvent
- Returns:
- The throwable that causes the state change, or
null
, if there was none.
-
-