Package io.atomix.primitive.log
Interface LogConsumer
public interface LogConsumer
Log consumer.
-
Method Summary
Modifier and Type Method Description CompletableFuture<Void>consume(long index, java.util.function.Consumer<LogRecord> consumer)Adds a new consumer.default CompletableFuture<Void>consume(java.util.function.Consumer<LogRecord> consumer)Adds a new consumer.
-
Method Details
-
consume
Adds a new consumer.- Parameters:
consumer- the consumer to add- Returns:
- a future to be completed once the consumer has been added
-
consume
Adds a new consumer.- Parameters:
index- the index from which to begin consumingconsumer- the consumer to add- Returns:
- a future to be completed once the consumer has been added
-