public class GridCacheQueueHeader extends Object implements GridCacheInternal, Externalizable
| Constructor and Description |
|---|
GridCacheQueueHeader()
Required by
Externalizable. |
GridCacheQueueHeader(GridUuid 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() |
GridUuid |
id() |
void |
readExternal(ObjectInput in) |
Set<Long> |
removedIndexes() |
int |
size() |
long |
tail() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridCacheQueueHeader()
Externalizable.public GridCacheQueueHeader(GridUuid 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 GridUuid 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 ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.