Class RestReactiveSessionProvider
java.lang.Object
ai.yda.framework.channel.rest.spring.streaming.session.RestReactiveSessionProvider
- All Implemented Interfaces:
ai.yda.framework.session.core.ReactiveSessionProvider
@Component
public class RestReactiveSessionProvider
extends Object
implements ai.yda.framework.session.core.ReactiveSessionProvider
Provides methods for storing and retrieving data associated with a Session using a key-value store within a REST
context in a reactive manner.
- Since:
- 0.1.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RestReactiveSessionProvider
public RestReactiveSessionProvider()Default constructor forRestReactiveSessionProvider.
-
-
Method Details
-
put
Stores an object in the Session with the specified key.- Specified by:
putin interfaceai.yda.framework.session.core.ReactiveSessionProvider- Parameters:
key- the key with which the object is to be associated.value- the object to be stored in the Session.
-
get
Retrieves an object from the Session associated with the specified key.- Specified by:
getin interfaceai.yda.framework.session.core.ReactiveSessionProvider- Parameters:
key- the key whose associated value is to be retrieved.- Returns:
- an
reactor.core.publisher.Mono<Object>containing the value associated with the key, or an emptyMonoif the key does not exist in the Session.
-