public class SemaphoreRegistry extends ResourceRegistry<AcquireInvocationKey,Semaphore> implements IdentifiedDataSerializable
Semaphore resources and manages wait timeouts
based on acquire / release requestsdestroyedNames, groupId, resources, waitTimeouts| Modifier and Type | Method and Description |
|---|---|
protected SemaphoreRegistry |
cloneForSnapshot() |
protected Semaphore |
createNewResource(CPGroupId groupId,
String name) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
addWaitKey, destroy, getGroupId, getLiveOperations, getOrInitResource, getResourceOrNull, getWaitTimeouts, populate, readData, removeWaitKey, toString, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadData, writeDataprotected Semaphore createNewResource(CPGroupId groupId, String name)
createNewResource in class ResourceRegistry<AcquireInvocationKey,Semaphore>protected SemaphoreRegistry cloneForSnapshot()
cloneForSnapshot in class ResourceRegistry<AcquireInvocationKey,Semaphore>public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2019 Hazelcast, Inc.. All rights reserved.