Package org.springframework.ai.session
Class Session.Builder
java.lang.Object
org.springframework.ai.session.Session.Builder
- Enclosing class:
- Session
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the expiry, ornullfor a session that never expires, the default.Adds one metadata entry.Adds every entry of the map, keeping the ones already set.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
-
createdAt
-
expiresAt
Sets the expiry, ornullfor a session that never expires, the default. The time to live is the service's policy, seeDefaultSessionService.Builder.defaultTimeToLive; a session is a value. -
metadata
Adds every entry of the map, keeping the ones already set. -
metadata
Adds one metadata entry. -
build
-