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 | 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 | |
| public Throwable | Returns: the last ThrowableAtomically terminate the container and return the contents of the last non-terminal Throwable of it. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| AtomicThrowable | back to summary |
|---|---|
| public AtomicThrowable() | |
| addThrowable | back to summary |
|---|---|
| public boolean addThrowable(Throwable t) Atomically adds a Throwable to this container (combining with a previous Throwable is necessary).
| |
| 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.
| |