public final class AtomicThrowable extends AtomicReference<Throwable>
Watch out for the leaked AtomicReference methods!
Constructor and Description |
---|
AtomicThrowable() |
Modifier and Type | Method and Description |
---|---|
boolean |
addThrowable(Throwable t)
Atomically adds a Throwable to this container (combining with a previous Throwable is necessary).
|
boolean |
isTerminated() |
Throwable |
terminate()
Atomically terminate the container and return the contents of the last
non-terminal Throwable of it.
|
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSet
public boolean addThrowable(Throwable t)
t
- the throwable to addpublic Throwable terminate()
public boolean isTerminated()
Copyright © 2018 JBoss by Red Hat. All rights reserved.