Interface EventReader.ClientRequestor

Enclosing interface:
EventReader
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 EventReader.ClientRequestor
Generically wraps EsdbClient calls to consume Events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    request(EsdbClient client, Consumer<Event> eventConsumer)
    Encapsulates an EsdbClient call to fetch raw Events passed to the given consumer.
  • Method Details

    • request

      void request(EsdbClient client, Consumer<Event> eventConsumer)
      Encapsulates an EsdbClient call to fetch raw Events passed to the given consumer.
      Parameters:
      client - the client to fetch from
      eventConsumer - the raw Event consumer