It is also async-fuseable but empty all the time.
Since EmptyDisposable implements QueueDisposable and is empty, don't use it in tests and then signal onNext with it; use Disposables.empty() instead.
| Modifier and Type | Field and Description |
|---|---|
| public static final EmptyDisposable | INSTANCE
Since EmptyDisposable implements QueueDisposable and is empty, don't use it in tests and then signal onNext with it; use Disposables.empty() instead. |
| public static final EmptyDisposable | NEVER
An empty disposable that returns false for isDisposed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements io. |
| public static void | |
| public static void | |
| public static void | |
| public void | dispose()
Implements io. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public boolean | isDisposed()
Implements io. |
| public boolean | isEmpty()
Implements io. |
| public boolean | offer(Object
the value to enqueue, not null value)Implements io. |
| public boolean | offer(Object
the first value to enqueue, not null v1, Object the second value to enqueue, not null v2)Implements io. |
| public Object | poll()
Implements io. |
| public int | requestFusion(int mode)
Implements io. |
| public static EmptyDisposable | |
| public static EmptyDisposable[] |
| INSTANCE | back to summary |
|---|---|
| public static final EmptyDisposable INSTANCE Since EmptyDisposable implements QueueDisposable and is empty, don't use it in tests and then signal onNext with it; use Disposables.empty() instead. | |
| NEVER | back to summary |
|---|---|
| public static final EmptyDisposable NEVER An empty disposable that returns false for isDisposed. | |
| EmptyDisposable | back to summary |
|---|---|
| private EmptyDisposable() | |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| complete | back to summary |
|---|---|
| public static void complete(Observer<?> observer) | |
| complete | back to summary |
|---|---|
| public static void complete(MaybeObserver<?> observer) | |
| complete | back to summary |
|---|---|
| public static void complete(CompletableObserver observer) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| error | back to summary |
|---|---|
| public static void error(Throwable e, Observer<?> observer) | |
| error | back to summary |
|---|---|
| public static void error(Throwable e, CompletableObserver observer) | |
| error | back to summary |
|---|---|
| public static void error(Throwable e, SingleObserver<?> observer) | |
| error | back to summary |
|---|---|
| public static void error(Throwable e, MaybeObserver<?> observer) | |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Returns true if the queue is empty.
Note however that due to potential fused functions in
| |
| offer | back to summary |
|---|---|
| public boolean offer(Object value) Implements io. Doc from io. Atomically enqueue a single. | |
| offer | back to summary |
|---|---|
| public boolean offer(Object v1, Object v2) Implements io. Doc from io. Atomically enqueue two values. | |
| poll | back to summary |
|---|---|
| public Object poll() throws Exception Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int mode) Implements io. Doc from io. Request a fusion mode from the upstream.
This should be called before
Calling this method multiple times or after
| |
| valueOf | back to summary |
|---|---|
| public static EmptyDisposable valueOf(String name) | |
| values | back to summary |
|---|---|
| public static EmptyDisposable[] values() | |