public class GridCacheQueueHeader extends Object implements GridCacheInternal, Externalizable
| Constructor and Description |
|---|
GridCacheQueueHeader()
Required by
Externalizable. |
GridCacheQueueHeader(IgniteUuid id,
int cap,
boolean collocated,
long head,
long tail,
Set<Long> rmvIdxs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bounded() |
int |
capacity() |
boolean |
collocated() |
boolean |
empty() |
boolean |
full() |
long |
head() |
IgniteUuid |
id() |
void |
readExternal(ObjectInput in) |
Set<Long> |
removedIndexes() |
int |
size() |
long |
tail() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridCacheQueueHeader()
Externalizable.public GridCacheQueueHeader(IgniteUuid id, int cap, boolean collocated, long head, long tail, @Nullable Set<Long> rmvIdxs)
id - Queue unique ID.cap - Capacity.collocated - Collocation flag.head - Queue head index.tail - Queue tail index.rmvIdxs - Indexes of removed items.public IgniteUuid id()
public int capacity()
public boolean collocated()
public long head()
public long tail()
public boolean bounded()
True if queue is bounded.public boolean empty()
True if queue is empty.public boolean full()
True if queue is full.public int size()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015