public class GridCacheOffheapSwapEntry<V> extends Object implements GridCacheSwapEntry<V>
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() |
V |
value() |
void |
value(V val) |
static long |
valueAddress(long ptr,
int size) |
byte[] |
valueBytes() |
void |
valueBytes(byte[] valBytes) |
IgniteUuid |
valueClassLoaderId() |
boolean |
valueIsByteArray() |
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 GridCacheSwapEntry<V>public void valueBytes(byte[] valBytes)
valueBytes in interface GridCacheSwapEntry<V>valBytes - Value bytes.public V value()
value in interface GridCacheSwapEntry<V>public void value(V val)
value in interface GridCacheSwapEntry<V>val - Value.public boolean valueIsByteArray()
valueIsByteArray in interface GridCacheSwapEntry<V>public GridCacheVersion version()
version in interface GridCacheSwapEntry<V>public long ttl()
ttl in interface GridCacheSwapEntry<V>public long expireTime()
expireTime in interface GridCacheSwapEntry<V>@Nullable public IgniteUuid keyClassLoaderId()
keyClassLoaderId in interface GridCacheSwapEntry<V>null for local class loader).public long offheapPointer()
offheapPointer in interface GridCacheSwapEntry<V>@Nullable public IgniteUuid valueClassLoaderId()
valueClassLoaderId in interface GridCacheSwapEntry<V>null for local class loader).
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015