Watch out for the leaked AtomicReference methods!
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Throwable | Returns: the last ThrowableAtomically terminate the container and return the contents of the last non-terminal Throwable of it. |
| public boolean | Returns: true if successful, false if the container has been terminatedthe throwable to add t)Atomically adds a Throwable to this container (combining with a previous Throwable is necessary). |
| public boolean | Returns: true if successful, false if the container has been terminatedthe throwable to add t)Atomically adds a Throwable to this container (combining with a previous Throwable is necessary) or reports the error the global error handler and no changes are made. |
| public void | tryTerminateAndReport()
Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator)
and calls |
| public void | tryTerminateConsumer(Subscriber<?>
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| public void | tryTerminateConsumer(Observer<?>
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| public void | tryTerminateConsumer(MaybeObserver<?>
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| public void | tryTerminateConsumer(SingleObserver<?>
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| public void | tryTerminateConsumer(CompletableObserver
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| public void | tryTerminateConsumer(Emitter<?>
the consumer to notify consumer)Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| AtomicThrowable | back to summary |
|---|---|
| public AtomicThrowable() | |
| isTerminated | back to summary |
|---|---|
| public boolean isTerminated() | |
| terminate | back to summary |
|---|---|
| public Throwable terminate() Atomically terminate the container and return the contents of the last non-terminal Throwable of it.
| |
| tryAddThrowable | back to summary |
|---|---|
| public boolean tryAddThrowable(Throwable t) Atomically adds a Throwable to this container (combining with a previous Throwable is necessary).
| |
| tryAddThrowableOrReport | back to summary |
|---|---|
| public boolean tryAddThrowableOrReport(Throwable t) Atomically adds a Throwable to this container (combining with a previous Throwable is necessary) or reports the error the global error handler and no changes are made.
| |
| tryTerminateAndReport | back to summary |
|---|---|
| public void tryTerminateAndReport() Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator)
and calls
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(Subscriber<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(Observer<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(MaybeObserver<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(SingleObserver<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(CompletableObserver consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |
| tryTerminateConsumer | back to summary |
|---|---|
| public void tryTerminateConsumer(Emitter<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). If there was a terminated indicator, the consumer is not signaled.
| |