I - the identifier typepublic class AffinityIdentifierFactory<I> extends Object implements IdentifierFactory<I>, org.infinispan.affinity.KeyGenerator<org.wildfly.clustering.ee.Key<I>>
IdentifierFactory that uses a KeyAffinityService to pre-generate locally hashing identifiers from a supplier.| Constructor and Description |
|---|
AffinityIdentifierFactory(Supplier<I> factory,
org.infinispan.Cache<? extends org.wildfly.clustering.ee.Key<I>,?> cache,
KeyAffinityServiceFactory affinityFactory) |
| Modifier and Type | Method and Description |
|---|---|
I |
get() |
org.wildfly.clustering.ee.Key<I> |
getKey() |
void |
start() |
void |
stop() |
public AffinityIdentifierFactory(Supplier<I> factory, org.infinispan.Cache<? extends org.wildfly.clustering.ee.Key<I>,?> cache, KeyAffinityServiceFactory affinityFactory)
public org.wildfly.clustering.ee.Key<I> getKey()
getKey in interface org.infinispan.affinity.KeyGenerator<org.wildfly.clustering.ee.Key<I>>public void start()
start in interface org.wildfly.clustering.ee.Restartablepublic void stop()
stop in interface org.wildfly.clustering.ee.RestartableCopyright © 2021 JBoss by Red Hat. All rights reserved.