org.ehcache.core.spi.cache.tiering
Interface BinaryValueHolder


public interface BinaryValueHolder

Companion interface for Store.ValueHolder to indicate that a binary representation of the value can be provided.


Method Summary
 java.nio.ByteBuffer getBinaryValue()
          Returns the ByteBuffer containing the value in binary form
 boolean isBinaryValueAvailable()
          Indicates whether the binary value can be accessed.
 

Method Detail

getBinaryValue

java.nio.ByteBuffer getBinaryValue()
                                   throws java.lang.IllegalStateException
Returns the ByteBuffer containing the value in binary form

Returns:
the binary form inside a ByteBuffer
Throws:
java.lang.IllegalStateException - If the ValueHolder cannot provide the binary form

isBinaryValueAvailable

boolean isBinaryValueAvailable()
Indicates whether the binary value can be accessed.

Returns:
true if the binary value is present and accessible, false otherwise