Class GridCacheQueueHeader
- java.lang.Object
-
- org.apache.ignite.internal.processors.datastructures.GridCacheQueueHeader
-
- All Implemented Interfaces:
Externalizable,Serializable,GridCacheInternal
public class GridCacheQueueHeader extends Object implements GridCacheInternal, Externalizable
Queue header.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCacheQueueHeader()Required byExternalizable.GridCacheQueueHeader(IgniteUuid id, int cap, boolean collocated, long head, long tail, @Nullable Set<Long> rmvIdxs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbounded()intcapacity()booleancollocated()booleanempty()booleanfull()longhead()IgniteUuidid()voidreadExternal(ObjectInput in)@Nullable Set<Long>removedIndexes()intsize()longtail()StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
GridCacheQueueHeader
public GridCacheQueueHeader()
Required byExternalizable.
-
GridCacheQueueHeader
public GridCacheQueueHeader(IgniteUuid id, int cap, boolean collocated, long head, long tail, @Nullable @Nullable Set<Long> rmvIdxs)
- Parameters:
id- Queue unique ID.cap- Capacity.collocated- Collocation flag.head- Queue head index.tail- Queue tail index.rmvIdxs- Indexes of removed items.
-
-
Method Detail
-
id
public IgniteUuid id()
- Returns:
- Queue unique ID.
-
capacity
public int capacity()
- Returns:
- Capacity.
-
collocated
public boolean collocated()
- Returns:
- Queue collocation flag.
-
head
public long head()
- Returns:
- Head index.
-
tail
public long tail()
- Returns:
- Tail index.
-
bounded
public boolean bounded()
- Returns:
Trueif queue is bounded.
-
empty
public boolean empty()
- Returns:
Trueif queue is empty.
-
full
public boolean full()
- Returns:
Trueif queue is full.
-
size
public int size()
- Returns:
- Queue size.
-
removedIndexes
@Nullable public @Nullable Set<Long> removedIndexes()
- Returns:
- Indexes of removed items.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-