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,
@Nullable 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) |
@Nullable 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 @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()
@Nullable public @Nullable Set<Long> removedIndexes()
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 Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021