| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Long | |
| private final Action0 | |
| private final BackpressureOverflow. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | OperatorOnBackpressureBuffer(long
the max number of items to be admitted in the buffer, must be greater than 0. capacity)Construct a new instance that will handle overflows with |
| public | OperatorOnBackpressureBuffer(long
the max number of items to be admitted in the buffer, must be greater than 0. capacity, Action0 the onOverflow)Action0 to execute when the buffer overflows, may be null.Construct a new instance that will handle overflows with |
| public | OperatorOnBackpressureBuffer(long
the max number of items to be admitted in the buffer, must be greater than 0. capacity, Action0 the onOverflow, BackpressureOverflow.Action0 to execute when the buffer overflows, may be null.the overflowStrategyBackpressureOverflow.Strategy to handle overflows, it must not be null.Construct a new instance feeding the following behavior config: |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber | |
| public static <T> OperatorOnBackpressureBuffer |
| capacity | back to summary |
|---|---|
| private final Long capacity | |
| onOverflow | back to summary |
|---|---|
| private final Action0 onOverflow | |
| overflowStrategy | back to summary |
|---|---|
| private final BackpressureOverflow. | |
| OperatorOnBackpressureBuffer | back to summary |
|---|---|
| pack-priv OperatorOnBackpressureBuffer() | |
| OperatorOnBackpressureBuffer | back to summary |
|---|---|
| public OperatorOnBackpressureBuffer(long capacity) Construct a new instance that will handle overflows with
| |
| OperatorOnBackpressureBuffer | back to summary |
|---|---|
| public OperatorOnBackpressureBuffer(long capacity, Action0 onOverflow) Construct a new instance that will handle overflows with
| |
| OperatorOnBackpressureBuffer | back to summary |
|---|---|
| public OperatorOnBackpressureBuffer(long capacity, Action0 onOverflow, BackpressureOverflow. Construct a new instance feeding the following behavior config:
| |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| instance | back to summary |
|---|---|
public static <T> OperatorOnBackpressureBuffer
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final Subscriber | |
| private final BackpressureDrainManager | |
| private final Action0 | |
| private final BackpressureOverflow. | |
| private final ConcurrentLinkedQueue | |
| private final AtomicBoolean |
| Access | Constructor and Description |
|---|---|
| public | BufferSubscriber(final Subscriber<? super T> child, Long capacity, Action0 onOverflow, BackpressureOverflow.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(Object
the value to deliver, not null value)Implements rx. |
| private boolean | |
| public void | complete(Throwable
if not null, contains the terminal exception exception)Implements rx. |
| protected Producer | |
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| public void | onStart()
Overrides rx. |
| public Object | peek()
Implements rx. |
| public Object | poll()
Implements rx. |
| capacity | back to summary |
|---|---|
| private final AtomicLong capacity | |
| child | back to summary |
|---|---|
| private final Subscriber<? super T> child | |
| manager | back to summary |
|---|---|
| private final BackpressureDrainManager manager | |
| onOverflow | back to summary |
|---|---|
| private final Action0 onOverflow | |
| overflowStrategy | back to summary |
|---|---|
| private final BackpressureOverflow. | |
| queue | back to summary |
|---|---|
| private final ConcurrentLinkedQueue<Object> queue | |
| saturated | back to summary |
|---|---|
| private final AtomicBoolean saturated | |
| BufferSubscriber | back to summary |
|---|---|
| public BufferSubscriber(final Subscriber<? super T> child, Long capacity, Action0 onOverflow, BackpressureOverflow. | |
| accept | back to summary |
|---|---|
| public boolean accept(Object value) Implements rx. Doc from rx. Override this method to deliver an element to downstream. The logic ensures that this happens only in the right conditions. | |
| assertCapacity | back to summary |
|---|---|
| private boolean assertCapacity() | |
| complete | back to summary |
|---|---|
| public void complete(Throwable exception) Implements rx. Doc from rx. Override this method to deliver a normal or exceptional terminal event. | |
| manager | back to summary |
|---|---|
| protected Producer manager() | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| onStart | back to summary |
|---|---|
| public void onStart() Overrides rx. Doc from rx. This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.
| |
| peek | back to summary |
|---|---|
| public Object peek() Implements rx. Doc from rx. Override this method to peek for the next element, null meaning no next element available now. It will be called plain and while holding this object's monitor. | |
| poll | back to summary |
|---|---|
| public Object poll() Implements rx. Doc from rx. Override this method to poll (consume) the next element, null meaning no next element available now. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final OperatorOnBackpressureBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final OperatorOnBackpressureBuffer<?> INSTANCE | |
| Holder | back to summary |
|---|---|
| pack-priv Holder() | |