Class SimpleKeyAffinityService<K>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.affinity.SimpleKeyAffinityService<K>
- Type Parameters:
K- the cache key type
- 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>
Simple
KeyAffinityService implementation for use when co-location is not a requirement.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetCollocatedKey(K otherKey) getKeyForAddress(org.infinispan.remoting.transport.Address address) booleanvoidstart()voidstop()
-
Method Details
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.infinispan.affinity.KeyAffinityService<K>
-
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
-
getCollocatedKey
-