Modifier and Type | Method and Description |
---|---|
<T> Copier<T> |
createKeyCopier(java.lang.Class<T> clazz,
Serializer<T> serializer,
ServiceConfiguration<?>... configs)
Creates a key
Copier with the given parameters. |
<T> Copier<T> |
createValueCopier(java.lang.Class<T> clazz,
Serializer<T> serializer,
ServiceConfiguration<?>... configs)
Creates a value
Copier with the given parameters. |
void |
releaseCopier(Copier<?> copier)
Releases the provided
Copier instance
If the copier instance is provided by the user, Closeable.close()
will not be invoked. |
<T> Copier<T> createKeyCopier(java.lang.Class<T> clazz, Serializer<T> serializer, ServiceConfiguration<?>... configs)
Copier
with the given parameters.T
- the type to copy to/fromclazz
- 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 configurationsCopier
instance<T> Copier<T> createValueCopier(java.lang.Class<T> clazz, Serializer<T> serializer, ServiceConfiguration<?>... configs)
Copier
with the given parameters.T
- the type to copy to/fromclazz
- 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 configurationsCopier
instancevoid releaseCopier(Copier<?> copier) throws java.lang.Exception
Copier
instance
If the copier instance is provided by the user, Closeable.close()
will not be invoked.copier
- the copier instance to be releasedjava.lang.Exception
- when the release fails