public class RxRingBuffer extends Object implements rx.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 o,
rx.Observer child) |
Throwable |
asError(Object o) |
int |
available() |
int |
capacity() |
int |
count() |
static RxRingBuffer |
getSpmcInstance() |
static RxRingBuffer |
getSpscInstance() |
static RxRingBuffer |
getSpscInstance(int size) |
Object |
getValue(Object o) |
boolean |
isCompleted(Object o) |
boolean |
isEmpty() |
boolean |
isError(Object o) |
boolean |
isUnsubscribed() |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(Object o) |
Object |
peek() |
Object |
poll() |
void |
release() |
void |
unsubscribe() |
public volatile Object terminalState
public static final int SIZE
public static RxRingBuffer getSpscInstance()
public static RxRingBuffer getSpscInstance(int size)
public static RxRingBuffer getSpmcInstance()
public void release()
public void unsubscribe()
unsubscribe in interface rx.Subscriptionpublic void onNext(Object o) throws rx.exceptions.MissingBackpressureException
o - the value to bufferrx.exceptions.MissingBackpressureException - if more onNext are sent than have been requestedpublic void onCompleted()
public void onError(Throwable t)
public int available()
public int capacity()
public int count()
public boolean isEmpty()
public Object poll()
public Object peek()
public boolean isCompleted(Object o)
public boolean isError(Object o)
public boolean accept(Object o, rx.Observer child)
public boolean isUnsubscribed()
isUnsubscribed in interface rx.SubscriptionCopyright © 2013–2018. All rights reserved.