public class GridCacheSemaphoreState extends Object implements GridCacheInternal, Externalizable, Cloneable
| Constructor and Description |
|---|
GridCacheSemaphoreState()
Empty constructor required for
Externalizable. |
GridCacheSemaphoreState(int cnt,
Map<UUID,Integer> waiters,
boolean failoverSafe)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
getCount() |
Map<UUID,Integer> |
getWaiters() |
boolean |
isFailoverSafe() |
void |
readExternal(ObjectInput in) |
void |
setCount(int cnt) |
void |
setWaiters(Map<UUID,Integer> waiters) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridCacheSemaphoreState(int cnt,
@Nullable
Map<UUID,Integer> waiters,
boolean failoverSafe)
cnt - Number of permissions.waiters - Waiters map.failoverSafe - Failover safe flag.public GridCacheSemaphoreState()
Externalizable.public 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 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 Fabric : ver. 1.7.0 Release Date : August 1 2016