com.sksamuel.scruffy.session

GuavaMemoryCacheSessionManager

Related Doc: package session

class GuavaMemoryCacheSessionManager extends SessionManager

Linear Supertypes
SessionManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GuavaMemoryCacheSessionManager
  2. SessionManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GuavaMemoryCacheSessionManager(maxSize: Int = 50000, expiry: FiniteDuration = 1.hour)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val cache: Cache[String, Session]

    Attributes
    protected
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def create(id: String)(implicit executor: ExecutionContext): Future[Session]

    Create a new empty session.

    Create a new empty session. The key is a hint to the key of the session and implementations can ignore if needed.

    Definition Classes
    GuavaMemoryCacheSessionManagerSessionManager
  8. def create()(implicit executor: ExecutionContext): Future[Session]

    Create a new empty session.

    Create a new empty session. The newly created session will be assigned an id by the underlying implementation.

    Definition Classes
    GuavaMemoryCacheSessionManagerSessionManager
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def exists(id: String)(implicit executor: ExecutionContext): Future[Boolean]

    Definition Classes
    SessionManager
  12. def expire(key: String)(implicit executor: ExecutionContext): Future[Unit]

  13. def expire(session: Session)(implicit executor: ExecutionContext): Future[Unit]

    Mark the given session as expired and remove it from the underlying implementation.

    Mark the given session as expired and remove it from the underlying implementation. If the session does not exist or has already expired, then this is a no-op.

    Definition Classes
    SessionManager
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def generateId: String

    Attributes
    protected
  16. def get(id: String)(implicit executor: ExecutionContext): Future[Option[Session]]

    Returns a Session for the given id.

    Returns a Session for the given id. If no session exists, then the result is a None.

    Definition Classes
    GuavaMemoryCacheSessionManagerSessionManager
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getOrCreate(id: String)(implicit executor: ExecutionContext): Future[Session]

    Returns a session for the given id or creates a new session if none is available.

    Returns a session for the given id or creates a new session if none is available. Implementations are free to ignore the given id when creating an new session and can assign a different id. This is useful for distributed implementations.

    Definition Classes
    SessionManager
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def update(session: Session)(implicit executor: ExecutionContext): Future[Unit]

    Persists the given session.

    Persists the given session.

    Definition Classes
    GuavaMemoryCacheSessionManagerSessionManager
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SessionManager

Inherited from AnyRef

Inherited from Any

Ungrouped