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.BiCreator<String,,MV, AV, Duration> org.wildfly.clustering.cache.BiLocator<String,,MV, AV> org.wildfly.clustering.cache.Creator<String,,Map.Entry<MV, AV>, Duration> ImmutableSessionFactory<MV,,AV> org.wildfly.clustering.cache.Locator<String,,Map.Entry<MV, AV>> org.wildfly.clustering.server.Registration,org.wildfly.clustering.cache.Remover<String>
- All Known Implementing Classes:
CompositeSessionFactory
public interface SessionFactory<C,MV,AV,SC>
extends ImmutableSessionFactory<MV,AV>, org.wildfly.clustering.cache.BiCreator<String,MV,AV,Duration>, org.wildfly.clustering.cache.Remover<String>, org.wildfly.clustering.server.Registration
Factory for creating sessions. Encapsulates the cache mapping strategy for sessions.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
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.BiCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiLocator
findValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Creator
createValueMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, tryEntryMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValue, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Remover
purge, remove
-
Method Details
-
getMetaDataFactory
SessionMetaDataFactory<MV> getMetaDataFactory()- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<C,MV>
-
getAttributesFactory
SessionAttributesFactory<C,AV> getAttributesFactory()- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<C,MV>
-
createEntry
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.Remover<C>
-
purgeAsync
- Specified by:
purgeAsyncin interfaceorg.wildfly.clustering.cache.Remover<C>
-
createSession
-
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration
-