Class NoOpSnapshotAdapter

  • All Implemented Interfaces:
    SnapshotAdapter<java.lang.Object>

    public class NoOpSnapshotAdapter
    extends java.lang.Object
    implements SnapshotAdapter<java.lang.Object>
    INTERNAL API
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object fromJournal​(java.lang.Object from)
      Transform the stored state into the current state type.
      static NoOpSnapshotAdapter i()  
      static <S> SnapshotAdapter<S> instance()  
      java.lang.Object toJournal​(java.lang.Object state)
      Transform the state to a different type before sending to the journal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoOpSnapshotAdapter

        public NoOpSnapshotAdapter()
    • Method Detail

      • toJournal

        public java.lang.Object toJournal​(java.lang.Object state)
        Description copied from interface: SnapshotAdapter
        Transform the state to a different type before sending to the journal.
        Specified by:
        toJournal in interface SnapshotAdapter<java.lang.Object>
        Parameters:
        state - (undocumented)
        Returns:
        (undocumented)
      • fromJournal

        public java.lang.Object fromJournal​(java.lang.Object from)
        Description copied from interface: SnapshotAdapter
        Transform the stored state into the current state type. Can be used for migrations from different serialized state types.
        Specified by:
        fromJournal in interface SnapshotAdapter<java.lang.Object>
        Parameters:
        from - (undocumented)
        Returns:
        (undocumented)