public class Session extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Session.Builder
Builder for Session
|
static class |
Session.Key<T>
A class representing the key for a session
|
Modifier and Type | Field and Description |
---|---|
static Session |
EMPTY_SESSION |
Modifier and Type | Method and Description |
---|---|
static Session.Builder |
builder() |
<T> T |
get(@NotNull Session.Key<T> key)
Returns the session variable from the store
|
public static final Session EMPTY_SESSION
public static Session.Builder builder()
public <T> T get(@NotNull @NotNull Session.Key<T> key)
T
- the type of the value of the session variable being retrievedkey
- the name of the session variable to retrieveCopyright © 2018. All rights reserved.