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 SessionStoragecreate()java.lang.Stringget()voidget(java.util.function.Consumer<java.lang.String> session)booleanisPresent()voidset(CreateSession session)
-
-
-
Method Detail
-
create
public static SessionStorage create()
-
get
public java.lang.String get() throws java.lang.NullPointerException- Specified by:
getin interfaceSessionStorage- Throws:
java.lang.NullPointerException
-
get
public void get(java.util.function.Consumer<java.lang.String> session)
- Specified by:
getin interfaceSessionStorage
-
set
public void set(CreateSession session)
- Specified by:
setin interfaceSessionStorage
-
isPresent
public boolean isPresent()
- Specified by:
isPresentin interfaceSessionStorage
-
-