public class GridCacheSwapEntryImpl extends Object implements GridCacheSwapEntry
| Constructor and Description |
|---|
GridCacheSwapEntryImpl(ByteBuffer valBytes,
byte type,
GridCacheVersion ver,
long ttl,
long expireTime,
IgniteUuid keyClsLdrId,
IgniteUuid valClsLdrId) |
| Modifier and Type | Method and Description |
|---|---|
long |
expireTime() |
static long |
expireTime(byte[] bytes) |
static IgniteBiTuple<byte[],Byte> |
getValue(byte[] bytes) |
IgniteUuid |
keyClassLoaderId() |
byte[] |
marshal() |
long |
offheapPointer() |
static long |
timeToLive(byte[] bytes) |
String |
toString() |
long |
ttl() |
byte |
type() |
static GridCacheSwapEntryImpl |
unmarshal(byte[] arr) |
CacheObject |
value() |
void |
value(CacheObject val) |
byte[] |
valueBytes() |
void |
valueBytes(byte[] valBytes) |
IgniteUuid |
valueClassLoaderId() |
static int |
valueOffset(byte[] bytes) |
GridCacheVersion |
version() |
static GridCacheVersion |
version(byte[] bytes) |
public GridCacheSwapEntryImpl(ByteBuffer valBytes, byte type, GridCacheVersion ver, long ttl, long expireTime, @Nullable IgniteUuid keyClsLdrId, @Nullable IgniteUuid valClsLdrId)
valBytes - Value.type - Type.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 IgniteBiTuple<byte[],Byte> getValue(byte[] bytes)
bytes - Entry bytes.null.public static int valueOffset(byte[] bytes)
bytes - Entry bytes.public byte[] valueBytes()
valueBytes in interface GridCacheSwapEntrypublic void valueBytes(@Nullable 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).@Nullable public IgniteUuid valueClassLoaderId()
valueClassLoaderId in interface GridCacheSwapEntrynull for local class loader).public long offheapPointer()
offheapPointer in interface GridCacheSwapEntrypublic byte[] marshal()
public static GridCacheSwapEntryImpl unmarshal(byte[] arr)
arr - Entry bytes.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015