Package com.usatiuk.kleppmanntree
Interface OpRecorder<TimestampT extends Comparable<TimestampT>,PeerIdT extends Comparable<PeerIdT>,MetaT extends NodeMeta,NodeIdT>
- Type Parameters:
TimestampT
- the type of the timestampPeerIdT
- the type of the peer IDMetaT
- the type of the node metadataNodeIdT
- 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 Summary
Modifier and TypeMethodDescriptionvoid
Records an operation to be sent to peers asynchronously.void
recordOpForPeer
(PeerIdT peer, OpMove<TimestampT, PeerIdT, MetaT, NodeIdT> op) Records an operation to be sent to a specific peer asynchronously.
-
Method Details
-
recordOp
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
Records an operation to be sent to a specific peer asynchronously.- Parameters:
peer
- the ID of the peer to send the operation toop
- the operation to be recorded
-