Class AffinityIdentifierFactory<I>
java.lang.Object
org.wildfly.clustering.server.infinispan.manager.AffinityIdentifierFactory<I>
- Type Parameters:
I- the identifier type
- All Implemented Interfaces:
Supplier<I>,org.infinispan.affinity.KeyGenerator<org.wildfly.clustering.cache.Key<I>>,org.wildfly.clustering.server.manager.IdentifierFactory<I>,org.wildfly.clustering.server.manager.Restartable
public class AffinityIdentifierFactory<I>
extends Object
implements org.wildfly.clustering.server.manager.IdentifierFactory<I>, org.infinispan.affinity.KeyGenerator<org.wildfly.clustering.cache.Key<I>>
An
IdentifierFactory that uses a KeyAffinityService to pre-generate locally hashing identifiers from a supplier.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionAffinityIdentifierFactory(Supplier<I> factory, org.infinispan.Cache<? extends org.wildfly.clustering.cache.Key<I>, ?> cache) -
Method Summary
-
Constructor Details
-
AffinityIdentifierFactory
-
-
Method Details
-
get
-
getKey
- Specified by:
getKeyin interfaceorg.infinispan.affinity.KeyGenerator<I>
-
start
public void start()- Specified by:
startin interfaceorg.wildfly.clustering.server.manager.Restartable
-
stop
public void stop()- Specified by:
stopin interfaceorg.wildfly.clustering.server.manager.Restartable
-