Package org.osgi.util.pushstream
@Version("1.1.0")
package org.osgi.util.pushstream
Push Stream Package Version 1.1.
Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest.
Example import for consumers using the API in this package:
Import-Package: org.osgi.util.pushstream; version="[1.1,2.0)"
Example import for providers implementing the API in this package:
Import-Package: org.osgi.util.pushstream; version="[1.1,1.2)"
-
ClassDescriptionBufferBuilder<R,
T, U extends BlockingQueue<PushEvent<? extends T>>> Create a buffered section of a Push-based streamPushbackPolicy<T,U extends BlockingQueue<PushEvent<? extends T>>> APushbackPolicy
is used to calculate how much back pressure to apply based on the current buffer.PushbackPolicyOption
provides a standard set of simplePushbackPolicy
implementations.PushEvent<T>A PushEvent is an immutable object that is transferred through a communication channel to push information to a downstream consumer.The type of aPushEvent
.An Async Event Consumer asynchronously receives Data events until it receives either a Close or Error event.An event source.PushStream<T>A Push Stream fulfills the same role as the Java 8 stream but it reverses the control direction.PushStreamBuilder<T,U extends BlockingQueue<PushEvent<? extends T>>> A Builder for a PushStream.A factory forPushStream
instances, and utility methods for handlingPushEventSource
s andPushEventConsumer
sQueuePolicy<T,U extends BlockingQueue<PushEvent<? extends T>>> AQueuePolicy
is used to control how events should be queued in the current buffer.QueuePolicyOption
provides a standard set of simpleQueuePolicy
implementations.ASimplePushEventSource
is a helper that makes it simpler to write aPushEventSource
.ThresholdPushbackPolicy<T,U extends BlockingQueue<PushEvent<? extends T>>> Provides a configurablePushbackPolicy
implementation that returns zero back pressure until the buffer fills beyond the supplied threshold.