Interface JournalConsumer<Journal,T extends Throwable>

Type Parameters:
Journal - the journal instance handle
T - the checked exception or similar to be thrown; e.g. JJournalException.
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 interface JournalConsumer<Journal,T extends Throwable>
consumer interface for e.g. streaming. interface needed so consumer functions can properly throw regular JJournalException, and other exception classes
Version:
$Id: $Id
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Journal journal)
    accept and process given input.
  • Method Details

    • accept

      void accept(Journal journal) throws T

      accept and process given input.

      Parameters:
      journal - a Journal object
      Throws:
      T - if any.