public class GridCacheOffheapSwapEntry extends Object implements GridCacheSwapEntry
Offheap pointer points to marshalled GridCacheSwapEntryImpl instance, marshalled data:
| Constructor and Description |
|---|
GridCacheOffheapSwapEntry(long ptr,
int size) |
| Modifier and Type | Method and Description |
|---|---|
long |
expireTime() |
static long |
expireTime(long ptr) |
IgniteUuid |
keyClassLoaderId() |
long |
offheapPointer() |
static long |
timeToLive(long ptr) |
String |
toString() |
long |
ttl() |
byte |
type() |
CacheObject |
value() |
void |
value(CacheObject val) |
static long |
valueAddress(long ptr,
int size) |
byte[] |
valueBytes() |
void |
valueBytes(byte[] valBytes) |
IgniteUuid |
valueClassLoaderId() |
GridCacheVersion |
version() |
static GridCacheVersion |
version(long ptr) |
public GridCacheOffheapSwapEntry(long ptr,
int size)
ptr - Value pointer.size - Value size.public static long valueAddress(long ptr,
int size)
ptr - Marshaled swap entry address.size - Marshalled data size.public static long timeToLive(long ptr)
ptr - Marshaled swap entry address.public static long expireTime(long ptr)
ptr - Marshaled swap entry address.public static GridCacheVersion version(long ptr)
ptr - Marshaled swap entry address.public byte[] valueBytes()
valueBytes in interface GridCacheSwapEntrypublic void valueBytes(byte[] valBytes)
valueBytes in interface GridCacheSwapEntryvalBytes - Value bytes.public CacheObject value()
value in interface GridCacheSwapEntrypublic void value(CacheObject val)
value in interface GridCacheSwapEntryval - Value.public byte type()
type in interface GridCacheSwapEntrypublic GridCacheVersion version()
version in interface GridCacheSwapEntrypublic long ttl()
ttl in interface GridCacheSwapEntrypublic long expireTime()
expireTime in interface GridCacheSwapEntry@Nullable public IgniteUuid keyClassLoaderId()
keyClassLoaderId in interface GridCacheSwapEntrynull for local class loader).public long offheapPointer()
offheapPointer in interface GridCacheSwapEntry@Nullable public IgniteUuid valueClassLoaderId()
valueClassLoaderId in interface GridCacheSwapEntrynull for local class loader).
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017