com.rabbitmq.utility
public class BlockingValueOrException<V,E extends java.lang.Throwable & SensibleClone<E>> extends BlockingCell<ValueOrException<V,E>>
Constructor and Description |
---|
BlockingValueOrException() |
Modifier and Type | Method and Description |
---|---|
void |
setException(E e) |
void |
setValue(V v) |
V |
uninterruptibleGetValue() |
V |
uninterruptibleGetValue(int timeout) |
get, get, set, setIfUnset, uninterruptibleGet, uninterruptibleGet
public void setValue(V v)
public void setException(E e)
public V uninterruptibleGetValue() throws E extends java.lang.Throwable & SensibleClone<E>
E extends java.lang.Throwable & SensibleClone<E>
public V uninterruptibleGetValue(int timeout) throws E extends java.lang.Throwable & SensibleClone<E>, java.util.concurrent.TimeoutException
E extends java.lang.Throwable & SensibleClone<E>
java.util.concurrent.TimeoutException