public abstract class ReadWriteCopier<T>
extends java.lang.Object
implements org.ehcache.spi.copy.Copier<T>
Copier implementation that can be extended directly
if the copying operation is the same irrespective of the action
performed (read or write).| Constructor and Description |
|---|
ReadWriteCopier() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
copy(T obj)
Template copy method to be implemented by sub-classes.
|
T |
copyForRead(T obj) |
T |
copyForWrite(T obj) |
public T copyForRead(T obj)
copyForRead in interface org.ehcache.spi.copy.Copier<T>public T copyForWrite(T obj)
copyForWrite in interface org.ehcache.spi.copy.Copier<T>public abstract T copy(T obj)
It will be invoked when copyForRead(Object) or copyForWrite(Object) is invoked on
Copier.
obj - the instance to copy