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.
Callback interface for sending entries to the replica.
-
Method Summary
Modifier and TypeMethodDescriptionbooleansendEntry(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 indexterm- The log entry termdata- The serialized entry data- Returns:
- true if sent successfully, false on failure
-