Interface ReusablePersister<T>

  • All Superinterfaces:
    com.palantir.common.persist.Persistable.Hydrator<T>

    public interface ReusablePersister<T>
    extends com.palantir.common.persist.Persistable.Hydrator<T>
    ReusablePersisters 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 Detail

      • persistToBytes

        byte[] persistToBytes​(T objectToPersist)
      • getPersistingClassType

        java.lang.Class<T> getPersistingClassType()