org.ehcache.internal.store.offheap.portability
Class OffHeapValueHolderPortability<V>
java.lang.Object
org.ehcache.internal.store.offheap.portability.OffHeapValueHolderPortability<V>
- All Implemented Interfaces:
- org.terracotta.offheapstore.storage.portability.Portability<OffHeapValueHolder<V>>, org.terracotta.offheapstore.storage.portability.WriteBackPortability<OffHeapValueHolder<V>>
public class OffHeapValueHolderPortability<V>
- extends java.lang.Object
- implements org.terracotta.offheapstore.storage.portability.WriteBackPortability<OffHeapValueHolder<V>>
OffHeapValueHolderPortability
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCESS_TIME_OFFSET
public static final int ACCESS_TIME_OFFSET
- See Also:
- Constant Field Values
EXPIRE_TIME_OFFSET
public static final int EXPIRE_TIME_OFFSET
- See Also:
- Constant Field Values
HITS_OFFSET
public static final int HITS_OFFSET
- See Also:
- Constant Field Values
OffHeapValueHolderPortability
public OffHeapValueHolderPortability(Serializer<V> serializer)
encode
public java.nio.ByteBuffer encode(OffHeapValueHolder<V> valueHolder)
- Specified by:
encode
in interface org.terracotta.offheapstore.storage.portability.Portability<OffHeapValueHolder<V>>
decode
public OffHeapValueHolder<V> decode(java.nio.ByteBuffer byteBuffer)
- Specified by:
decode
in interface org.terracotta.offheapstore.storage.portability.Portability<OffHeapValueHolder<V>>
equals
public boolean equals(java.lang.Object o,
java.nio.ByteBuffer byteBuffer)
- Specified by:
equals
in interface org.terracotta.offheapstore.storage.portability.Portability<OffHeapValueHolder<V>>
decode
public OffHeapValueHolder<V> decode(java.nio.ByteBuffer byteBuffer,
org.terracotta.offheapstore.storage.portability.WriteContext writeContext)
- Specified by:
decode
in interface org.terracotta.offheapstore.storage.portability.WriteBackPortability<OffHeapValueHolder<V>>