Interface ImmutableSessionFactory<MV,AV>
- Type Parameters:
MV- the session metadata value typeAV- the session attribute value type
- All Superinterfaces:
BiCacheEntryLocator<String,,MV, AV> CacheEntryLocator<String,Map.Entry<MV, AV>>
- All Known Subinterfaces:
SessionFactory<C,MV, AV, SC>
- All Known Implementing Classes:
CompositeImmutableSessionFactory,CompositeSessionFactory,HotRodSessionFactory
Factory for creating an
ImmutableSession.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault ImmutableSessioncreateImmutableSession(String id, Map.Entry<MV, AV> entry) createImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) default Map.Entry<CompletionStage<MV>,CompletionStage<AV>> Locates the value in the cache with the specified identifier.default Map.Entry<CompletionStage<MV>,CompletionStage<AV>> Locates the value in the cache with the specified identifier, if available.Methods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValue
-
Method Details
-
getMetaDataFactory
ImmutableSessionMetaDataFactory<MV> getMetaDataFactory() -
getAttributesFactory
ImmutableSessionAttributesFactory<AV> getAttributesFactory() -
getCacheProperties
CacheProperties getCacheProperties() -
findEntry
Description copied from interface:BiCacheEntryLocatorLocates the value in the cache with the specified identifier.- Specified by:
findEntryin interfaceBiCacheEntryLocator<String,MV, AV> - Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found.
-
tryEntry
Description copied from interface:BiCacheEntryLocatorLocates the value in the cache with the specified identifier, if available.- Specified by:
tryEntryin interfaceBiCacheEntryLocator<String,MV, AV> - Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found or is in use.
-
createImmutableSession
-
createImmutableSession
ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes)
-