K - the key typepublic class AffinityIdentifierFactory<K> extends Object implements org.wildfly.clustering.web.IdentifierFactory<K>, org.infinispan.affinity.KeyGenerator<Key<K>>
IdentifierFactory that uses a KeyAffinityService to generate identifiers.| Constructor and Description |
|---|
AffinityIdentifierFactory(org.wildfly.clustering.web.IdentifierFactory<K> factory,
org.infinispan.Cache<Key<K>,?> cache,
KeyAffinityServiceFactory affinityFactory) |
| Modifier and Type | Method and Description |
|---|---|
K |
createIdentifier() |
Key<K> |
getKey() |
void |
start() |
void |
stop() |
public AffinityIdentifierFactory(org.wildfly.clustering.web.IdentifierFactory<K> factory, org.infinispan.Cache<Key<K>,?> cache, KeyAffinityServiceFactory affinityFactory)
public K createIdentifier()
createIdentifier in interface org.wildfly.clustering.web.IdentifierFactory<K>public void start()
start in interface org.wildfly.clustering.web.IdentifierFactory<K>public void stop()
stop in interface org.wildfly.clustering.web.IdentifierFactory<K>Copyright © 2020 JBoss by Red Hat. All rights reserved.