public abstract class ClusteredSingletonLookupImplBase extends Object implements ClusteredSingletonLookup
ClusteredSingletonLookup.SingletonType
Constructor and Description |
---|
ClusteredSingletonLookupImplBase(String componentId,
ClusteredSingletonLookup.SingletonType singletonType) |
Modifier and Type | Method and Description |
---|---|
com.hazelcast.core.IMap<String,Object> |
getClusteredSingletonMap() |
com.hazelcast.core.IAtomicLong |
getClusteredUsageCount() |
com.hazelcast.core.ILock |
getDistributedLock() |
HazelcastCore |
getHazelcastCore() |
protected String |
getKeyPrefix() |
protected String |
getLockKey() |
protected String |
getMapKey() |
String |
getSessionHzKey() |
protected void |
invalidateKeys()
getSessionHzKey() and getLockKey() are dependent on ClusteredSingletonLookup.getClusteredSessionKey() so should
its value change cache keys need to be invalidated using this method. |
boolean |
isClusteredEnabled() |
boolean |
isDistributedLockEnabled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClusteredSessionKey
public ClusteredSingletonLookupImplBase(String componentId, ClusteredSingletonLookup.SingletonType singletonType)
protected final String getKeyPrefix()
protected final String getMapKey()
protected final String getLockKey()
public final String getSessionHzKey()
protected final void invalidateKeys()
getSessionHzKey()
and getLockKey()
are dependent on ClusteredSingletonLookup.getClusteredSessionKey()
so should
its value change cache keys need to be invalidated using this method.public com.hazelcast.core.ILock getDistributedLock()
getDistributedLock
in interface ClusteredSingletonLookup
public com.hazelcast.core.IMap<String,Object> getClusteredSingletonMap()
getClusteredSingletonMap
in interface ClusteredSingletonLookup
public com.hazelcast.core.IAtomicLong getClusteredUsageCount()
getClusteredUsageCount
in interface ClusteredSingletonLookup
public boolean isClusteredEnabled()
isClusteredEnabled
in interface ClusteredSingletonLookup
public boolean isDistributedLockEnabled()
isDistributedLockEnabled
in interface ClusteredSingletonLookup
public HazelcastCore getHazelcastCore()
getHazelcastCore
in interface ClusteredSingletonLookup
Copyright © 2020. All rights reserved.