Interface OpRecorder<TimestampT extends Comparable<TimestampT>,PeerIdT extends Comparable<PeerIdT>,MetaT extends NodeMeta,NodeIdT>

Type Parameters:
TimestampT - the type of the timestamp
PeerIdT - the type of the peer ID
MetaT - the type of the node metadata
NodeIdT - the type of the node ID

public interface OpRecorder<TimestampT extends Comparable<TimestampT>,PeerIdT extends Comparable<PeerIdT>,MetaT extends NodeMeta,NodeIdT>
Interface to provide recording operations to be sent to peers asynchronously.
  • Method Details

    • recordOp

      void recordOp(OpMove<TimestampT,PeerIdT,MetaT,NodeIdT> op)
      Records an operation to be sent to peers asynchronously. The operation will be sent to all known peers in the system.
      Parameters:
      op - the operation to be recorded
    • recordOpForPeer

      void recordOpForPeer(PeerIdT peer, OpMove<TimestampT,PeerIdT,MetaT,NodeIdT> op)
      Records an operation to be sent to a specific peer asynchronously.
      Parameters:
      peer - the ID of the peer to send the operation to
      op - the operation to be recorded