public class RxRingBuffer extends java.lang.Object implements Subscription
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
java.lang.Object |
terminalState
We store the terminal state separately so it doesn't count against the size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.Object o,
Observer child) |
java.lang.Throwable |
asError(java.lang.Object o) |
int |
available() |
int |
capacity() |
int |
count() |
static RxRingBuffer |
getSpmcInstance() |
static RxRingBuffer |
getSpscInstance() |
java.lang.Object |
getValue(java.lang.Object o) |
boolean |
isCompleted(java.lang.Object o) |
boolean |
isEmpty() |
boolean |
isError(java.lang.Object o) |
boolean |
isUnsubscribed()
Indicates whether this
Subscription is currently unsubscribed. |
void |
onCompleted() |
void |
onError(java.lang.Throwable t) |
void |
onNext(java.lang.Object o) |
java.lang.Object |
peek() |
java.lang.Object |
poll() |
void |
release() |
void |
unsubscribe()
Stops the receipt of notifications on the
Subscriber that was registered when this Subscription
was received. |
public volatile java.lang.Object terminalState
public static final int SIZE
public static RxRingBuffer getSpscInstance()
public static RxRingBuffer getSpmcInstance()
public void release()
public void unsubscribe()
SubscriptionSubscriber that was registered when this Subscription
was received.
This allows unregistering an Subscriber before it has finished receiving all events (i.e. before
onCompleted is called).
unsubscribe in interface Subscriptionpublic void onNext(java.lang.Object o)
throws MissingBackpressureException
o - MissingBackpressureException - if more onNext are sent than have been requestedpublic void onCompleted()
public void onError(java.lang.Throwable t)
public int available()
public int capacity()
public int count()
public boolean isEmpty()
public java.lang.Object poll()
public java.lang.Object peek()
public boolean isCompleted(java.lang.Object o)
public boolean isError(java.lang.Object o)
public java.lang.Object getValue(java.lang.Object o)
public boolean accept(java.lang.Object o,
Observer child)
public java.lang.Throwable asError(java.lang.Object o)
public boolean isUnsubscribed()
SubscriptionSubscription is currently unsubscribed.isUnsubscribed in interface Subscriptiontrue if this Subscription is currently unsubscribed, false otherwise