Package com.atlassian.confluence.util
Class ConnectableConsumer<T>
java.lang.Object
com.atlassian.confluence.util.ConnectableConsumer<T>
- Type Parameters:
T
- the type of the input
- All Implemented Interfaces:
Consumer<T>
@ParametersAreNonnullByDefault
public class ConnectableConsumer<T>
extends Object
implements Consumer<T>
A proxy
Consumer
that collects the items it accepts
,
then pass them through to a target Consumer
when connected
.
In this way, you can start accepting
items before the target Consumer
is available.- Since:
- 7.11