Interface SessionFactory<C,MV,AV,SC>
- Type Parameters:
C- the session manager context typeMV- the meta-data value typeAV- the attributes value typeSC- the session context type
- All Superinterfaces:
AutoCloseable,org.wildfly.clustering.cache.BiCacheEntryCreator<String,,MV, AV, Duration> org.wildfly.clustering.cache.BiCacheEntryLocator<String,,MV, AV> org.wildfly.clustering.cache.CacheEntryCreator<String,,Map.Entry<MV, AV>, Duration> org.wildfly.clustering.cache.CacheEntryLocator<String,,Map.Entry<MV, AV>> org.wildfly.clustering.cache.CacheEntryRemover<String>,ImmutableSessionFactory<MV,AV>
- All Known Implementing Classes:
CompositeSessionFactory
public interface SessionFactory<C,MV,AV,SC>
extends ImmutableSessionFactory<MV,AV>, org.wildfly.clustering.cache.BiCacheEntryCreator<String,MV,AV,Duration>, org.wildfly.clustering.cache.CacheEntryRemover<String>, AutoCloseable
Factory for creating sessions. Encapsulates the cache mapping strategy for sessions.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()default Map.Entry<CompletionStage<MV>,CompletionStage<AV>> createEntry(String id, Duration context) org.wildfly.clustering.session.Session<SC>default CompletionStage<Void>purgeAsync(String id) default CompletionStage<Void>removeAsync(String id) Methods inherited from interface org.wildfly.clustering.cache.BiCacheEntryCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator
createValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryRemover
purge, removeMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, getCacheProperties, tryEntry
-
Method Details
-
getMetaDataFactory
SessionMetaDataFactory<MV> getMetaDataFactory()- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<C,MV>
-
getAttributesFactory
SessionAttributesFactory<C,AV> getAttributesFactory()- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<C,MV>
-
getContextFactory
-
createEntry
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<C>
-
purgeAsync
- Specified by:
purgeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<C>
-
createSession
-
close
default void close()- Specified by:
closein interfaceAutoCloseable
-