ehcache

net.sf.ehcache.store.compound
Interface ReadWriteCopyStrategy<T>

Type Parameters:
T - type
All Superinterfaces:
Serializable
All Known Implementing Classes:
ImmutableValueElementCopyStrategy, LegacyCopyStrategyAdapter, NullReadWriteCopyStrategy, ReadWriteSerializationCopyStrategy, SerializationCopyStrategy

public interface ReadWriteCopyStrategy<T>
extends Serializable

Since:
2.4.0
Author:
Ludovic Orban

Method Summary
 T copyForRead(T storedValue)
          Reconstruct an object from its storage-ready copy.
 T copyForWrite(T value)
          Deep copies some object and returns an internal storage-ready copy
 

Method Detail

copyForWrite

T copyForWrite(T value)
Deep copies some object and returns an internal storage-ready copy

Parameters:
value - the value to copy
Returns:
the storage-ready copy

copyForRead

T copyForRead(T storedValue)
Reconstruct an object from its storage-ready copy.

Parameters:
storedValue - the storage-ready copy
Returns:
the original object

ehcache

Copyright 2001-2014, Terracotta, Inc.