| Package | Description | 
|---|---|
| org.osgi.util.pushstream | Push Stream Package Version 1.0. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | BufferBuilder<R,T,U extends BlockingQueue<PushEvent<? extends T>>>Create a buffered section of a Push-based stream | 
| interface  | PushbackPolicy<T,U extends BlockingQueue<PushEvent<? extends T>>>A  PushbackPolicyis used to calculate how much back pressure to apply
 based on the current buffer. | 
| interface  | PushStreamBuilder<T,U extends BlockingQueue<PushEvent<? extends T>>>A Builder for a PushStream. | 
| interface  | QueuePolicy<T,U extends BlockingQueue<PushEvent<? extends T>>>A  QueuePolicyis used to control how events should be queued in the
 current buffer. | 
| Modifier and Type | Method and Description | 
|---|---|
| <U extends BlockingQueue<PushEvent<? extends T>>> | PushStream. buildBuffer()Build a buffer to enqueue events in a queue using custom values for the
 queue size and other behaviors. | 
| <T,U extends BlockingQueue<PushEvent<? extends T>>> | PushStreamProvider. buildBufferedConsumer(PushEventConsumer<T> delegate)Build a buffered  PushEventConsumerwith custom configuration. | 
| <T,U extends BlockingQueue<PushEvent<? extends T>>> | PushStreamProvider. buildEventSourceFromStream(PushStream<T> stream)Convert an  PushStreaminto anPushEventSource. | 
| <T,U extends BlockingQueue<PushEvent<? extends T>>> | PushStreamProvider. buildSimpleEventSource(Class<T> type)Build a  SimplePushEventSourcewith the supplied type and custom
 buffering behaviors. | 
| <T,U extends BlockingQueue<PushEvent<? extends T>>> | PushStreamProvider. buildStream(PushEventSource<T> eventSource)Builds a push stream with custom configuration. | 
| abstract <T,U extends BlockingQueue<PushEvent<? extends T>>> | QueuePolicyOption. getPolicy() | 
| abstract <T,U extends BlockingQueue<PushEvent<? extends T>>> | PushbackPolicyOption. getPolicy(long value)Create a  PushbackPolicyinstance configured with a base back
 pressure time in nanoseconds
 
 The actual backpressure returned will vary based on the selected
 implementation, the base value, and the state of the buffer. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> PushEvent<T> | PushEvent. close()Create a new close event. | 
| static <T> PushEvent<T> | PushEvent. data(T payload)Create a new data event. | 
| static <T> PushEvent<T> | PushEvent. error(Throwable t)Create a new error event. | 
| <X> PushEvent<X> | PushEvent. nodata()Convenience to cast a close/error event to another payload type. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | PushEventConsumer. accept(PushEvent<? extends T> event)Accept an event from a source. | 
| void | QueuePolicy. doOffer(U queue,
       PushEvent<? extends T> event)Enqueue the event and return the remaining capacity available for events | 
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0