Class SimpleKeyAffinityService<K>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.affinity.impl.SimpleKeyAffinityService<K>
-
- All Implemented Interfaces:
org.infinispan.affinity.KeyAffinityService<K>,org.infinispan.commons.api.Lifecycle
public class SimpleKeyAffinityService<K> extends Object implements org.infinispan.affinity.KeyAffinityService<K>
SimpleKeyAffinityServiceimplementation for use when co-location is not a requirement.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KgetCollocatedKey(K otherKey)KgetKeyForAddress(org.infinispan.remoting.transport.Address address)booleanisStarted()voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
getKeyForAddress
public K getKeyForAddress(org.infinispan.remoting.transport.Address address)
- Specified by:
getKeyForAddressin interfaceorg.infinispan.affinity.KeyAffinityService<K>
-
getCollocatedKey
public K getCollocatedKey(K otherKey)
- Specified by:
getCollocatedKeyin interfaceorg.infinispan.affinity.KeyAffinityService<K>
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.infinispan.affinity.KeyAffinityService<K>
-
-