Interface ImmutableSessionFactory<MV,AV>
- Type Parameters:
MV- the session metadata value typeAV- the session attribute value type
- All Superinterfaces:
org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV, AV>, org.wildfly.clustering.cache.CacheEntryLocator<String, Map.Entry<MV, AV>>, ImmutableSessionFactoryConfiguration<MV, AV>
- All Known Subinterfaces:
SessionFactory<DC,MV, AV, SC>
- All Known Implementing Classes:
CompositeImmutableSessionFactory, CompositeSessionFactory
public interface ImmutableSessionFactory<MV,AV>
extends ImmutableSessionFactoryConfiguration<MV,AV>, org.wildfly.clustering.cache.BiCacheEntryLocator<String,MV,AV>
Factory for creating an
ImmutableSession.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.wildfly.clustering.session.ImmutableSessioncreateImmutableSession(String id, Map.Entry<MV, AV> entry) Creates an immutable session from the specified identifier and metadata/attribute entry.org.wildfly.clustering.session.ImmutableSessioncreateImmutableSession(String id, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, Map<String, Object> attributes) Creates an immutable session from the specified identifier, metadata, and attributes.default Map.Entry<CompletionStage<MV>, CompletionStage<AV>> default Map.Entry<CompletionStage<MV>, CompletionStage<AV>> Methods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValueMethods inherited from interface ImmutableSessionFactoryConfiguration
getCacheProperties, getSessionAttributesFactory, getSessionMetaDataFactory
-
Method Details
-
findEntry
-
tryEntry
-
createImmutableSession
default org.wildfly.clustering.session.ImmutableSession createImmutableSession(String id, Map.Entry<MV, AV> entry) Creates an immutable session from the specified identifier and metadata/attribute entry.- Parameters:
id- a session identifierentry- a map entry containing the metadata and attributes of the session- Returns:
- an immutable session
-
createImmutableSession
org.wildfly.clustering.session.ImmutableSession createImmutableSession(String id, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, Map<String, Object> attributes) Creates an immutable session from the specified identifier, metadata, and attributes.- Parameters:
id- the identifier of this sessionmetaData- the metadata of this sessionattributes- the attributes of this session- Returns:
- an immutable session
-