Class LongListReuseBag
- java.lang.Object
-
- org.apache.ignite.internal.util.GridLongList
-
- org.apache.ignite.internal.processors.cache.persistence.tree.reuse.LongListReuseBag
-
- All Implemented Interfaces:
Externalizable,Serializable,ReuseBag,Message
public final class LongListReuseBag extends GridLongList implements ReuseBag
GridLongList-based reuse bag.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.util.GridLongList
EMPTY_ARRAY
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description LongListReuseBag()Default constructor forExternalizable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFreePage(long pageId)longpollFreePage()-
Methods inherited from class org.apache.ignite.internal.util.GridLongList
add, addAll, array, asList, clear, contains, copyWithout, directType, equals, fieldsCount, get, hashCode, isEmpty, onAckReceived, readExternal, readFrom, remove, removeIndex, removeValue, size, sort, toString, truncate, writeExternal, writeTo
-
-
-
-
Constructor Detail
-
LongListReuseBag
public LongListReuseBag()
Default constructor forExternalizable.
-
-
Method Detail
-
addFreePage
public void addFreePage(long pageId)
- Specified by:
addFreePagein interfaceReuseBag- Parameters:
pageId- Free page ID for reuse.
-
pollFreePage
public long pollFreePage()
- Specified by:
pollFreePagein interfaceReuseBag- Returns:
- Free page ID for reuse or
0if empty.
-
-