org.ehcache.spi.copy
Interface CopyProvider
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- DefaultCopyProvider
public interface CopyProvider
- extends Service
createKeyCopier
<T> Copier<T> createKeyCopier(java.lang.Class<T> clazz,
Serializer<T> serializer,
ServiceConfiguration<?>... configs)
- Creates a key
Copier
with the given parameters.
- Type Parameters:
T
- the type to copy to/from- Parameters:
clazz
- the class of the type to copy to/fromserializer
- the serializer that can be used to perform the copying. The usage is optional though.configs
- specific configurations
- Returns:
- a
Copier
instance
createValueCopier
<T> Copier<T> createValueCopier(java.lang.Class<T> clazz,
Serializer<T> serializer,
ServiceConfiguration<?>... configs)
- Creates a value
Copier
with the given parameters.
- Type Parameters:
T
- the type to copy to/from- Parameters:
clazz
- the class of the type to copy to/fromserializer
- the serializer that can be used to perform the copying. The usage is optional though.configs
- specific configurations
- Returns:
- a
Copier
instance