- All Superinterfaces:
- Consumer<T>
- Enclosing class:
- KafkaCruiseControlUtils
- 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 KafkaCruiseControlUtils.MaybeThrowingConsumer<T>
extends Consumer<T>
Creates a Consumer that accepts methods that can throw checked exceptions. This is
needed as Consumer::accept method from library doesn't allow throwing exception which
in turn makes it hard to create lambda from methods that throw.