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<Key<I>>,Supplier<I>,IdentifierFactory<I>,Service
public class AffinityIdentifierFactory<I>
extends Object
implements IdentifierFactory<I>, org.infinispan.affinity.KeyGenerator<Key<I>>
An
IdentifierFactory that uses a KeyAffinityService to pre-generate locally hashing identifiers from a supplier.- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAffinityIdentifierFactory(Supplier<I> factory, org.infinispan.Cache<? extends Key<I>, ?> cache) -
Method Summary
-
Constructor Details
-
AffinityIdentifierFactory
-
-
Method Details
-
get
-
getKey
- Specified by:
getKeyin interfaceorg.infinispan.affinity.KeyGenerator<I>
-
isStarted
public boolean isStarted()Description copied from interface:ServiceIndicates whether or not this service is started. -
start
public void start()Description copied from interface:ServiceStarts this service. -
stop
public void stop()Description copied from interface:ServiceStops this service.
-