Class Page
- java.lang.Object
-
- org.terracotta.offheapstore.paging.Page
-
- Direct Known Subclasses:
MappedPage
public class Page extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Page(java.nio.ByteBuffer buffer, int index, int address, OffHeapStorageArea binding)Page(java.nio.ByteBuffer buffer, OffHeapStorageArea binding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddress()java.nio.ByteBufferasByteBuffer()java.nio.IntBufferasIntBuffer()OffHeapStorageAreabinding()intindex()(package private) booleanisFreeable()intsize()
-
-
-
Field Detail
-
buffer
private final java.nio.ByteBuffer buffer
-
binding
private final OffHeapStorageArea binding
-
index
private final int index
-
address
private final int address
-
freeable
private boolean freeable
-
-
Constructor Detail
-
Page
public Page(java.nio.ByteBuffer buffer, OffHeapStorageArea binding)
-
Page
public Page(java.nio.ByteBuffer buffer, int index, int address, OffHeapStorageArea binding)
-
-
Method Detail
-
asByteBuffer
public java.nio.ByteBuffer asByteBuffer()
-
asIntBuffer
public java.nio.IntBuffer asIntBuffer()
-
size
public int size()
-
index
public int index()
-
address
public int address()
-
binding
public OffHeapStorageArea binding()
-
isFreeable
boolean isFreeable()
-
-