public class GridCacheSwapEntryImpl<V> extends Object implements GridCacheSwapEntry<V>
| Constructor and Description |
|---|
GridCacheSwapEntryImpl(ByteBuffer valBytes,
boolean valIsByteArr,
GridCacheVersion ver,
long ttl,
long expireTime,
IgniteUuid keyClsLdrId,
IgniteUuid valClsLdrId) |
| Modifier and Type | Method and Description |
|---|---|
long |
expireTime() |
static long |
expireTime(byte[] bytes) |
static byte[] |
getValueIfByteArray(byte[] bytes) |
IgniteUuid |
keyClassLoaderId() |
byte[] |
marshal() |
long |
offheapPointer() |
static long |
timeToLive(byte[] bytes) |
String |
toString() |
long |
ttl() |
static <T> GridCacheSwapEntryImpl<T> |
unmarshal(byte[] arr) |
V |
value() |
void |
value(V val) |
byte[] |
valueBytes() |
void |
valueBytes(byte[] valBytes) |
IgniteUuid |
valueClassLoaderId() |
boolean |
valueIsByteArray() |
static int |
valueOffset(byte[] bytes) |
GridCacheVersion |
version() |
static GridCacheVersion |
version(byte[] bytes) |
public GridCacheSwapEntryImpl(ByteBuffer valBytes, boolean valIsByteArr, GridCacheVersion ver, long ttl, long expireTime, @Nullable IgniteUuid keyClsLdrId, @Nullable IgniteUuid valClsLdrId)
valBytes - Value.valIsByteArr - Whether value of this entry is byte array.ver - Version.ttl - Entry time to live.expireTime - Expire time.keyClsLdrId - Class loader ID for entry key (can be null for local class loader).valClsLdrId - Class loader ID for entry value (can be null for local class loader).public static long timeToLive(byte[] bytes)
bytes - Entry bytes.public static long expireTime(byte[] bytes)
bytes - Entry bytes.public static GridCacheVersion version(byte[] bytes)
bytes - Entry bytes.@Nullable public static byte[] getValueIfByteArray(byte[] bytes)
bytes - Entry bytes.null.public static int valueOffset(byte[] bytes)
bytes - Entry bytes.public byte[] valueBytes()
valueBytes in interface GridCacheSwapEntry<V>public void valueBytes(@Nullable 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).@Nullable public IgniteUuid valueClassLoaderId()
valueClassLoaderId in interface GridCacheSwapEntry<V>null for local class loader).public long offheapPointer()
offheapPointer in interface GridCacheSwapEntry<V>public byte[] marshal()
public static <T> GridCacheSwapEntryImpl<T> unmarshal(byte[] arr)
arr - Entry bytes.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015