public class RxRingBuffer extends Objectimplements Subscription
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
|
Object |
terminalState
We store the terminal state separately so it doesn't count against the size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object
|
Throwable |
asError(Object
|
int |
available()
|
int |
capacity()
|
int |
count()
|
static RxRingBuffer |
getSpmcInstance()
|
static RxRingBuffer |
getSpscInstance()
|
Object |
getValue(Object
|
boolean |
isCompleted(Object
|
boolean |
isEmpty()
|
boolean |
isError(Object
|
boolean |
isUnsubscribed()
Indicates whether this
Subscription is currently unsubscribed.
|
void |
onCompleted()
|
void |
onError(Throwable
|
void |
onNext(Object
|
Object |
peek()
|
Object |
poll()
|
void |
release()
|
void |
unsubscribe()
Stops the receipt of notifications on the
Subscriber that was registered when this Subscription was received.
|
public volatile ObjectterminalState
public static final int SIZE
public static RxRingBuffergetSpscInstance()
public static RxRingBuffergetSpmcInstance()
public void release()
public void unsubscribe()
Subscription
Subscriber 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).
public void onNext(Objecto) throws MissingBackpressureException
o -
MissingBackpressureException - if more onNext are sent than have been requested
public void onCompleted()
public void onError(Throwablet)
public int available()
public int capacity()
public int count()
public boolean isEmpty()
public Objectpoll()
public Objectpeek()
public boolean isCompleted(Objecto)
public boolean isError(Objecto)
public boolean isUnsubscribed()
Subscription
Subscription is currently unsubscribed.
isUnsubscribed in interface
Subscription
true if this
Subscription is currently unsubscribed,
false otherwise