public abstract class HazelcastSemaphoreProvider extends Object
ISemaphore instances.| Modifier and Type | Field and Description |
|---|---|
protected static String |
NAME_PREFIX
Name prefix recommended using for simpler configuration of Hazelcast.
|
| Constructor and Description |
|---|
HazelcastSemaphoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.hazelcast.cp.ISemaphore |
acquireSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance,
String name)
Invoked when new instance of semaphore needed for given name.
|
abstract void |
releaseSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance,
String name,
com.hazelcast.cp.ISemaphore semaphore)
Invoked when passed in semaphore associated with passed in name is not to be used anymore.
|
protected static final String NAME_PREFIX
public HazelcastSemaphoreProvider()
public abstract com.hazelcast.cp.ISemaphore acquireSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, String name)
null.public abstract void releaseSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, String name, com.hazelcast.cp.ISemaphore semaphore)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.