Class SessionEvent


  • public class SessionEvent
    extends Object
    This class represents a session event.

    If this is a new session, the event object contains all session information of this new session; otherwise, only the changed information of the session is contained in the event.

    See Also:
    Session, SessionEventType
    • Constructor Detail

      • SessionEvent

        public SessionEvent​(Session session,
                            SessionEventType eventType,
                            long eventTime)
        Creates a new session event.
        Parameters:
        session - The session object which emitted this event.
        eventType - The event which has occurred.
        eventTime - The event time as UTC milliseconds from the epoch.
    • Method Detail

      • getSession

        public Session getSession()
        Gets the session object which emitted this event.
        Returns:
        The session object which emitted this event.
      • getType

        public SessionEventType getType()
        Gets the type of event that has occurred.
        Returns:
        The type of this event.
      • getTime

        public long getTime()
        Gets the time of this event.
        Returns:
        The event time as UTC milliseconds from the epoch