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>>> APushbackPolicyis used to calculate how much back pressure to apply based on the current buffer.PushbackPolicyOptionprovides a standard set of simplePushbackPolicyimplementations.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 forPushStreaminstances, and utility methods for handlingPushEventSources andPushEventConsumersQueuePolicy<T,U extends BlockingQueue<PushEvent<? extends T>>> AQueuePolicyis used to control how events should be queued in the current buffer.QueuePolicyOptionprovides a standard set of simpleQueuePolicyimplementations.ASimplePushEventSourceis a helper that makes it simpler to write aPushEventSource.ThresholdPushbackPolicy<T,U extends BlockingQueue<PushEvent<? extends T>>> Provides a configurablePushbackPolicyimplementation that returns zero back pressure until the buffer fills beyond the supplied threshold.