javax.cache
Interface Serializer<V>

Type Parameters:
V - the type of cached values

public interface Serializer<V>

Tagging interface for a binary representation of a value or key. A vendor implementation may be a wrapper of a byte array, an interface to a stream or to a NIO buffer.

Since:
1.0
Author:
Yannis Cosmadopoulos

Nested Class Summary
static interface Serializer.Binary<V>
          Internal storage
 
Method Summary
 Serializer.Binary<V> createBinary(V value)
          Convert a value to a binary.
 

Method Detail

createBinary

Serializer.Binary<V> createBinary(V value)
Convert a value to a binary.

Parameters:
value - the value
Returns:
binary representation of value
Throws:
CacheException - is an error occurred during serialization
NullPointerException - if value is null


Copyright © 2011. All Rights Reserved.