Package com.palantir.atlasdb.persist.api
Interface ReusablePersister<T>
-
- All Superinterfaces:
com.palantir.common.persist.Persistable.Hydrator<T>
public interface ReusablePersister<T> extends com.palantir.common.persist.Persistable.Hydrator<T>
ReusablePersister
s are required to have a no arg constructor and be thread-safe. It will be re-used across executions. If persisters need state while (de)serializing, create a (de)serializer class and instantiate it in the relevant hydrate/persist method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>
getPersistingClassType()
byte[]
persistToBytes(T objectToPersist)
-