Interface ReplicationStream.SendEntryCallback

Enclosing class:
ReplicationStream
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ReplicationStream.SendEntryCallback
Callback interface for sending entries to the replica.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    sendEntry(long index, long term, byte[] data)
    Send a log entry to the replica.
  • Method Details

    • sendEntry

      boolean sendEntry(long index, long term, byte[] data)
      Send a log entry to the replica.
      Parameters:
      index - The log entry index
      term - The log entry term
      data - The serialized entry data
      Returns:
      true if sent successfully, false on failure