Package ai.preferred.venom
Class Session.Builder
- java.lang.Object
-
- ai.preferred.venom.Session.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session
build()
Create a new instance of session.<T> Session.Builder
put(@NotNull Session.Key<T> key, T value)
Adds a session variable into store.
-
-
-
Method Detail
-
put
public final <T> Session.Builder put(@NotNull @NotNull Session.Key<T> key, @Nullable T value)
Adds a session variable into store.- Type Parameters:
T
- the type of the value of the session variable- Parameters:
key
- an unique name of the session variablevalue
- the value of the session variable- Returns:
- an instance of Builder
-
build
public final Session build()
Create a new instance of session.- Returns:
- A new instance of session.
-
-