public interface GridCacheSemaphoreEx extends IgniteSemaphore, GridCacheRemovable
'Ex' stands for external).| Modifier and Type | Method and Description |
|---|---|
GridCacheInternalKey |
key()
Get current semaphore key.
|
void |
onNodeRemoved(UUID nodeId)
Callback to notify semaphore on topology changes.
|
void |
onUpdate(GridCacheSemaphoreState val)
Callback to notify semaphore on changes.
|
void |
stop()
Callback to notify local semaphore instance on node stop.
|
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, close, drainPermits, getQueueLength, hasQueuedThreads, isBroken, isFailoverSafe, name, release, release, removed, tryAcquire, tryAcquire, tryAcquire, tryAcquireneedCheckNotRemoved, onRemovedGridCacheInternalKey key()
void onUpdate(GridCacheSemaphoreState val)
val - State containing the number of available permissions.void onNodeRemoved(UUID nodeId)
nodeId - Id of the node that left the grid.void stop()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017