Class InfinispanUserContextFactory<PC,PV,TC>
java.lang.Object
org.wildfly.clustering.session.infinispan.embedded.user.InfinispanUserContextFactory<PC,PV,TC>
- Type Parameters:
PC- the persistent context typePV- the marshalled persistent context typeTC- the transient context type
- All Implemented Interfaces:
org.wildfly.clustering.cache.CacheEntryCreator<String, org.wildfly.clustering.session.cache.user.UserContext<PV,TC>, PC>, org.wildfly.clustering.cache.CacheEntryLocator<String, org.wildfly.clustering.session.cache.user.UserContext<PV, TC>>, org.wildfly.clustering.cache.CacheEntryRemover<String>, org.wildfly.clustering.session.cache.user.UserContextFactory<org.wildfly.clustering.session.cache.user.UserContext<PV, TC>, PC, TC>
public class InfinispanUserContextFactory<PC,PV,TC>
extends Object
implements org.wildfly.clustering.session.cache.user.UserContextFactory<org.wildfly.clustering.session.cache.user.UserContext<PV,TC>, PC, TC>
The factory for creating the context of a user.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionInfinispanUserContextFactory(org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheConfiguration configuration, org.wildfly.clustering.marshalling.Marshaller<PC, PV> marshaller, Supplier<TC> contextFactory) Creates a user context factory -
Method Summary
Modifier and TypeMethodDescriptioncreateUserContext(org.wildfly.clustering.session.cache.user.UserContext<PV, TC> entry) CompletionStage<org.wildfly.clustering.session.cache.user.UserContext<PV, TC>> createValueAsync(String id, PC context) CompletionStage<org.wildfly.clustering.session.cache.user.UserContext<PV, TC>> findValueAsync(String id) removeAsync(String id) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator
createValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValue, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryRemover
purge, purgeAsync, remove
-
Constructor Details
-
InfinispanUserContextFactory
public InfinispanUserContextFactory(org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheConfiguration configuration, org.wildfly.clustering.marshalling.Marshaller<PC, PV> marshaller, Supplier<TC> contextFactory) Creates a user context factory- Parameters:
configuration- the configuration for the associated cachemarshaller- a marshaller for the persistent context of a usercontextFactory- a factory for creating the user context
-
-
Method Details
-
createValueAsync
-
findValueAsync
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<PC>
-
createUserContext
-