Module io.github.bucket4j.hazelcast
Class HazelcastLockBasedProxyManager<K>
- java.lang.Object
-
- io.github.bucket4j.distributed.proxy.AbstractProxyManager<K>
-
- io.github.bucket4j.distributed.proxy.generic.pessimistic_locking.AbstractLockBasedProxyManager<K>
-
- io.github.bucket4j.grid.hazelcast.HazelcastLockBasedProxyManager<K>
-
- All Implemented Interfaces:
ProxyManager<K>
public class HazelcastLockBasedProxyManager<K> extends AbstractLockBasedProxyManager<K>
-
-
Constructor Summary
Constructors Constructor Description HazelcastLockBasedProxyManager(com.hazelcast.map.IMap<K,byte[]> map)HazelcastLockBasedProxyManager(com.hazelcast.map.IMap<K,byte[]> map, ClientSideConfig clientSideConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LockBasedTransactionallocateTransaction(K key)booleanisAsyncModeSupported()voidremoveProxy(K key)-
Methods inherited from class io.github.bucket4j.distributed.proxy.generic.pessimistic_locking.AbstractLockBasedProxyManager
execute, executeAsync, removeAsync
-
Methods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManager
asAsync, builder, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.bucket4j.distributed.proxy.ProxyManager
withMapper
-
-
-
-
Constructor Detail
-
HazelcastLockBasedProxyManager
public HazelcastLockBasedProxyManager(com.hazelcast.map.IMap<K,byte[]> map)
-
HazelcastLockBasedProxyManager
public HazelcastLockBasedProxyManager(com.hazelcast.map.IMap<K,byte[]> map, ClientSideConfig clientSideConfig)
-
-
Method Detail
-
removeProxy
public void removeProxy(K key)
-
isAsyncModeSupported
public boolean isAsyncModeSupported()
- Specified by:
isAsyncModeSupportedin interfaceProxyManager<K>- Overrides:
isAsyncModeSupportedin classAbstractLockBasedProxyManager<K>
-
allocateTransaction
protected LockBasedTransaction allocateTransaction(K key)
- Specified by:
allocateTransactionin classAbstractLockBasedProxyManager<K>
-
-