Class SessionChangedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.session.data.gemfire.events.SessionChangedEvent
All Implemented Interfaces:
Serializable

public class SessionChangedEvent extends org.springframework.context.ApplicationEvent
SessionChangedEvent is a Spring ApplicationEvent fire when the Session state changes.
Since:
2.2.0
See Also:
  • Constructor Details

    • SessionChangedEvent

      public SessionChangedEvent(Object source, org.springframework.session.Session session)
      Constructs a new instance of SessionChangedEvent initialized with the given source and Session.
      Parameters:
      source - Object referencing the source of the event.
      session - Session that changed.
      See Also:
      • Session
  • Method Details

    • getSession

      public <S extends org.springframework.session.Session> S getSession()
      Gets the Session that was changed.
      Type Parameters:
      S - type of Session.
      Returns:
      a reference to the Session that is the subject of the change event.
      See Also:
      • Session