Interface LogConsumer


public interface LogConsumer
Log consumer.
  • Method Details

    • consume

      default CompletableFuture<Void> consume​(java.util.function.Consumer<LogRecord> consumer)
      Adds a new consumer.
      Parameters:
      consumer - the consumer to add
      Returns:
      a future to be completed once the consumer has been added
    • consume

      CompletableFuture<Void> consume​(long index, java.util.function.Consumer<LogRecord> consumer)
      Adds a new consumer.
      Parameters:
      index - the index from which to begin consuming
      consumer - the consumer to add
      Returns:
      a future to be completed once the consumer has been added