Class HazelcastSemaphoreProvider
java.lang.Object
org.eclipse.aether.named.hazelcast.HazelcastSemaphoreProvider
- Direct Known Subclasses:
DirectHazelcastSemaphoreProvider
Support class for providers of
ISemaphore
instances.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Name prefix recommended using for simpler configuration of Hazelcast. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract com.hazelcast.cp.ISemaphore
acquireSemaphore
(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key) Invoked when new instance of semaphore needed for given key.abstract void
releaseSemaphore
(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key, com.hazelcast.cp.ISemaphore semaphore) Invoked when passed in semaphore associated with passed in key is not to be used anymore.
-
Field Details
-
NAME_PREFIX
Name prefix recommended using for simpler configuration of Hazelcast.- See Also:
-
-
Constructor Details
-
HazelcastSemaphoreProvider
public HazelcastSemaphoreProvider()
-
-
Method Details
-
acquireSemaphore
public abstract com.hazelcast.cp.ISemaphore acquireSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key) Invoked when new instance of semaphore needed for given key. must not returnnull
. -
releaseSemaphore
public abstract void releaseSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key, com.hazelcast.cp.ISemaphore semaphore) Invoked when passed in semaphore associated with passed in key is not to be used anymore.
-