Package hirez.api.sessions
Class CachedSessionStorage
- java.lang.Object
-
- hirez.api.sessions.CachedSessionStorage
-
- All Implemented Interfaces:
SessionStorage
public class CachedSessionStorage extends java.lang.Object implements SessionStorage
-
-
Field Summary
-
Fields inherited from interface hirez.api.SessionStorage
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description CachedSessionStorage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionStorage
create()
java.lang.String
get()
void
get(java.util.function.Consumer<java.lang.String> session)
boolean
isPresent()
void
set(CreateSession session)
-
-
-
Method Detail
-
create
public static SessionStorage create()
-
get
public java.lang.String get() throws java.lang.NullPointerException
- Specified by:
get
in interfaceSessionStorage
- Throws:
java.lang.NullPointerException
-
get
public void get(java.util.function.Consumer<java.lang.String> session)
- Specified by:
get
in interfaceSessionStorage
-
set
public void set(CreateSession session)
- Specified by:
set
in interfaceSessionStorage
-
isPresent
public boolean isPresent()
- Specified by:
isPresent
in interfaceSessionStorage
-
-