org.ehcache.internal.store.offheap.portability
Class OffHeapValueHolderPortability<V>

java.lang.Object
  extended by 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


Field Summary
static int ACCESS_TIME_OFFSET
           
static int EXPIRE_TIME_OFFSET
           
static int HITS_OFFSET
           
 
Constructor Summary
OffHeapValueHolderPortability(Serializer<V> serializer)
           
 
Method Summary
 OffHeapValueHolder<V> decode(java.nio.ByteBuffer byteBuffer)
           
 OffHeapValueHolder<V> decode(java.nio.ByteBuffer byteBuffer, org.terracotta.offheapstore.storage.portability.WriteContext writeContext)
           
 java.nio.ByteBuffer encode(OffHeapValueHolder<V> valueHolder)
           
 boolean equals(java.lang.Object o, java.nio.ByteBuffer byteBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

OffHeapValueHolderPortability

public OffHeapValueHolderPortability(Serializer<V> serializer)
Method Detail

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>>