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, waitgetClusteredSessionKeypublic 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 ClusteredSingletonLookuppublic com.hazelcast.core.IMap<String,Object> getClusteredSingletonMap()
getClusteredSingletonMap in interface ClusteredSingletonLookuppublic com.hazelcast.core.IAtomicLong getClusteredUsageCount()
getClusteredUsageCount in interface ClusteredSingletonLookuppublic boolean isClusteredEnabled()
isClusteredEnabled in interface ClusteredSingletonLookuppublic boolean isDistributedLockEnabled()
isDistributedLockEnabled in interface ClusteredSingletonLookuppublic HazelcastCore getHazelcastCore()
getHazelcastCore in interface ClusteredSingletonLookupCopyright © 2019. All rights reserved.