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, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readData, writeData
protected Semaphore createNewResource(CPGroupId groupId, String name)
createNewResource
in class ResourceRegistry<AcquireInvocationKey,Semaphore>
protected SemaphoreRegistry cloneForSnapshot()
cloneForSnapshot
in class ResourceRegistry<AcquireInvocationKey,Semaphore>
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All rights reserved.