public class SimpleKeyAffinityService<K> extends Object implements org.infinispan.affinity.KeyAffinityService<K>
KeyAffinityService implementation for use when co-location is not a requirement.| Modifier and Type | Method and Description |
|---|---|
K |
getCollocatedKey(K otherKey) |
K |
getKeyForAddress(org.infinispan.remoting.transport.Address address) |
boolean |
isStarted() |
void |
start() |
void |
stop() |
public void start()
start in interface org.infinispan.commons.api.Lifecyclepublic void stop()
stop in interface org.infinispan.commons.api.Lifecyclepublic K getKeyForAddress(org.infinispan.remoting.transport.Address address)
getKeyForAddress in interface org.infinispan.affinity.KeyAffinityService<K>public K getCollocatedKey(K otherKey)
getCollocatedKey in interface org.infinispan.affinity.KeyAffinityService<K>public boolean isStarted()
isStarted in interface org.infinispan.affinity.KeyAffinityService<K>Copyright © 2021 JBoss by Red Hat. All rights reserved.