public class GridCacheSemaphoreState extends VolatileAtomicDataStructureValue implements Cloneable
| Constructor and Description |
|---|
GridCacheSemaphoreState()
Empty constructor required for
Externalizable. |
GridCacheSemaphoreState(int cnt,
@Nullable Map<UUID,Integer> waiters,
boolean failoverSafe,
long gridStartTime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
getCount() |
Map<UUID,Integer> |
getWaiters() |
long |
gridStartTime() |
boolean |
isBroken() |
boolean |
isFailoverSafe() |
void |
readExternal(ObjectInput in) |
void |
setBroken(boolean broken) |
void |
setCount(int cnt) |
void |
setWaiters(Map<UUID,Integer> waiters) |
String |
toString() |
DataStructureType |
type() |
void |
writeExternal(ObjectOutput out) |
public GridCacheSemaphoreState(int cnt,
@Nullable
@Nullable Map<UUID,Integer> waiters,
boolean failoverSafe,
long gridStartTime)
cnt - Number of permissions.waiters - Waiters map.failoverSafe - Failover safe flag.gridStartTime - Cluster start time.public GridCacheSemaphoreState()
Externalizable.public DataStructureType type()
type in class AtomicDataStructureValuepublic long gridStartTime()
gridStartTime in class VolatileAtomicDataStructureValuepublic void setCount(int cnt)
cnt - New count.public int getCount()
public void setWaiters(Map<UUID,Integer> waiters)
waiters - Map containing the number of permissions acquired by each node.public boolean isFailoverSafe()
public boolean isBroken()
public void setBroken(boolean broken)
broken - Flag indicating that this semaphore should be no longer used.public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023