Uses of Interface
org.osgi.util.pushstream.PushStream
Packages that use PushStream
Package
Description
Log Stream Package Version 1.0.
Typed Event Monitoring Package Version 1.0.
Push Stream Package Version 1.1.
-
Uses of PushStream in org.osgi.service.log.stream
Methods in org.osgi.service.log.stream that return PushStreamModifier and TypeMethodDescriptionLogStreamProvider.createStream(LogStreamProvider.Options... options) Create aPushStreamofLogEntryobjects. -
Uses of PushStream in org.osgi.service.typedevent.monitor
Methods in org.osgi.service.typedevent.monitor that return PushStreamModifier and TypeMethodDescriptionTypedEventMonitor.monitorEvents()Get a stream of events, starting now.TypedEventMonitor.monitorEvents(int history) Get a stream of events, including up to the requested number of historical data events.TypedEventMonitor.monitorEvents(Instant history) Get a stream of events, including historical data events prior to the supplied time -
Uses of PushStream in org.osgi.util.pushstream
Methods in org.osgi.util.pushstream that return PushStreamModifier and TypeMethodDescriptionPushStream.adjustBackPressure(LongUnaryOperator adjustment) Changes the back-pressure propagated by this pipeline stage.PushStream.adjustBackPressure(ToLongBiFunction<T, Long> adjustment) Changes the back-pressure propagated by this pipeline stage.<R> PushStream<R>Asynchronously map the payload values.PushStream.buffer()Buffer the events in a queue using default values for the queue size and other behaviors.<R> PushStream<R>PushStream.coalesce(int count, Function<Collection<T>, R> f) Coalesces a number of events into a new type of event.<R> PushStream<R>PushStream.coalesce(IntSupplier count, Function<Collection<T>, R> f) Coalesces a number of events into a new type of event.<R> PushStream<R>Coalesces a number of events into a new type of event.<T> PushStream<T>PushStreamProvider.createStream(PushEventSource<T> eventSource) Create a stream with the default configured buffer, executor size, queue, queue policy and pushback policy.PushStream.distinct()Remove any duplicates.Only pass events downstream when the predicate tests true.<R> PushStream<R>PushStream.flatMap(Function<? super T, ? extends PushStream<? extends R>> mapper) Flat map the payload value (turn one event into 0..n events of potentially another type).Execute the downstream events in up to n background threads.PushStream.limit(long maxSize) Automatically close the channel after the maxSize number of elements is received.Automatically close the channel after the given amount of time has elapsed.<R> PushStream<R>Map a payload value.PushStream.merge(PushEventSource<? extends T> source) Merge in the events from another source.PushStream.merge(PushStream<? extends T> source) Merge in the events from another PushStream.Provide a handler that must be run after the PushStream is closed.Provide a handler that will be called if the PushStream is closed with an event of typePushEvent.EventType.ERROR.PushStream.sequential()Ensure that any events are delivered sequentially.PushStream.skip(long n) Skip a number of events in the channel.PushStream.sorted()Sorted the elements, assuming that T extends Comparable.PushStream.sorted(Comparator<? super T> comparator) Sorted the elements with the given comparator.PushStream<T>[]Split the events to different streams based on a predicate.<T> PushStream<T>PushStreamProvider.streamOf(Executor executor, ScheduledExecutorService scheduler, Stream<T> items) Create an UnbufferedPushStreamfrom a JavaStreamThe data from the stream will be pushed into the PushStream asynchronously using the supplied Executor.<T> PushStream<T>Create an UnbufferedPushStreamfrom a JavaStreamThe data from the stream will be pushed into the PushStream synchronously as it is opened.Automatically fail the channel if no events are received for the indicated length of time.<R> PushStream<R>Buffers a number of events over a fixed time interval and then forwards the events to an accumulator function.<R> PushStream<R>PushStream.window(Duration d, Function<Collection<T>, R> f) Buffers a number of events over a fixed time interval and then forwards the events to an accumulator function.<R> PushStream<R>PushStream.window(Supplier<Duration> timeSupplier, IntSupplier maxEvents, Executor executor, BiFunction<Long, Collection<T>, R> f) Buffers a number of events over a variable time interval and then forwards the events to an accumulator function.<R> PushStream<R>PushStream.window(Supplier<Duration> timeSupplier, IntSupplier maxEvents, BiFunction<Long, Collection<T>, R> f) Buffers a number of events over a variable time interval and then forwards the events to an accumulator function.Methods in org.osgi.util.pushstream with parameters of type PushStreamModifier and TypeMethodDescription<T,U extends BlockingQueue<PushEvent<? extends T>>>
BufferBuilder<PushEventSource<T>,T, U> PushStreamProvider.buildEventSourceFromStream(PushStream<T> stream) Convert anPushStreaminto anPushEventSource.<T> PushEventSource<T>PushStreamProvider.createEventSourceFromStream(PushStream<T> stream) Convert anPushStreaminto anPushEventSource.PushStream.merge(PushStream<? extends T> source) Merge in the events from another PushStream.Method parameters in org.osgi.util.pushstream with type arguments of type PushStreamModifier and TypeMethodDescription<R> PushStream<R>PushStream.flatMap(Function<? super T, ? extends PushStream<? extends R>> mapper) Flat map the payload value (turn one event into 0..n events of potentially another type).