Interface AsyncConsumerEx<T>

All Known Subinterfaces:
AsyncConsumer<T>
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 AsyncConsumerEx<T>
Represents an asynchronous consumer that consumes data items.
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(T value)
    Consumes some data asynchronously.
  • Method Details

    • accept

      Promise<Void> accept(T value) throws Exception
      Consumes some data asynchronously.
      Parameters:
      value - value to be consumed
      Returns:
      Promise of Void that represents successful consumption of data
      Throws:
      Exception