| Modifier and Type | Field and Description |
|---|---|
| private Queue | queue
Queue implementation testing that led to current choices of data structures: With synchronized LinkedList
|
| private final int | |
| public static final int | |
| public volatile Object | terminalState
We store the terminal state separately so it doesn't count against the size. |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Throwable | |
| public int | |
| public int | |
| public int | |
| public static RxRingBuffer | |
| public static RxRingBuffer | |
| public Object | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | |
| public void | |
| public void | |
| public Object | |
| public Object | |
| public synchronized void | |
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| queue | back to summary |
|---|---|
| private Queue<Object> queue Queue implementation testing that led to current choices of data structures: With synchronized LinkedList
| |
| size | back to summary |
|---|---|
| private final int size | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE | |
| terminalState | back to summary |
|---|---|
| public volatile Object terminalState We store the terminal state separately so it doesn't count against the size. We don't just +1 the size since some of the queues require sizes that are a power of 2. This is a subjective thing ... wanting to keep the size (ie 1024) the actual number of onNext that can be sent rather than something like 1023 onNext + 1 terminal event. It also simplifies checking that we have received only 1 terminal event, as we don't need to peek at the last item or retain a boolean flag. | |
| RxRingBuffer | back to summary |
|---|---|
| private RxRingBuffer(Queue<Object> queue, int size) | |
| RxRingBuffer | back to summary |
|---|---|
| private RxRingBuffer(boolean spmc, int size) | |
| RxRingBuffer | back to summary |
|---|---|
| pack-priv RxRingBuffer() | |
| accept | back to summary |
|---|---|
public boolean accept(Object o, Observer<T> child)
| |
| asError | back to summary |
|---|---|
| public Throwable asError(Object o) | |
| available | back to summary |
|---|---|
| public int available() | |
| capacity | back to summary |
|---|---|
| public int capacity() | |
| count | back to summary |
|---|---|
| public int count() | |
| getSpmcInstance | back to summary |
|---|---|
| public static RxRingBuffer getSpmcInstance() | |
| getSpscInstance | back to summary |
|---|---|
| public static RxRingBuffer getSpscInstance() | |
| getValue | back to summary |
|---|---|
| public Object getValue(Object o) | |
| isCompleted | back to summary |
|---|---|
| public boolean isCompleted(Object o) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isError | back to summary |
|---|---|
| public boolean isError(Object o) | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) | |
| onNext | back to summary |
|---|---|
public void onNext(Object o) throws MissingBackpressureException
| |
| peek | back to summary |
|---|---|
| public Object peek() | |
| poll | back to summary |
|---|---|
| public Object poll() | |
| release | back to summary |
|---|---|
| public synchronized void release() | |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |