T
- The payload type@ConsumerType @FunctionalInterface public interface PushEventSource<T>
PushEventConsumer.ABORT
.
Values that are larger than 0 should be treated as a request to delay the
next events with those number of milliseconds.Modifier and Type | Method and Description |
---|---|
java.lang.AutoCloseable |
open(PushEventConsumer<? super T> aec)
Open the asynchronous channel between the source and the consumer.
|
java.lang.AutoCloseable open(PushEventConsumer<? super T> aec) throws java.lang.Exception
AutoCloseable
. This can be closed, and should
close the channel, including sending a Close event if the channel was not
already closed. The returned object must be able to be closed multiple
times without sending more than one Close events.aec
- the consumer (not null)AutoCloseable
that can be used to close the streamjava.lang.Exception
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0