Interface SingletonSessionStore<T extends Session>

All Superinterfaces:
DataStore, ExpandedLifecycleStore, InternalCacheDataStore, SessionListener
All Known Subinterfaces:
ServiceStore

public interface SingletonSessionStore<T extends Session> extends ExpandedLifecycleStore, InternalCacheDataStore, SessionListener
  • Method Details

    • finalizeValidate

      default void finalizeValidate() throws Exception
      Specified by:
      finalizeValidate in interface ExpandedLifecycleStore
      Throws:
      Exception
    • setSessionEnabled

      default void setSessionEnabled(boolean value)
    • isSessionRunning

      default boolean isSessionRunning()
    • isSessionEnabled

      default boolean isSessionEnabled()
    • onStateChange

      default void onStateChange(boolean running)
      Specified by:
      onStateChange in interface SessionListener
    • newSession

      T newSession() throws Exception
      Throws:
      Exception
    • getSessionClass

      Class<?> getSessionClass()
    • getSession

      default T getSession()
    • startSessionIfNeeded

      default void startSessionIfNeeded() throws Exception
      Throws:
      Exception
    • stopSessionIfNeeded

      default void stopSessionIfNeeded() throws Exception
      Throws:
      Exception