Package com.rabbitmq.utility
Class BlockingValueOrException<V,E extends Throwable & SensibleClone<E>>
- java.lang.Object
-
- com.rabbitmq.utility.BlockingCell<ValueOrException<V,E>>
-
- com.rabbitmq.utility.BlockingValueOrException<V,E>
-
public class BlockingValueOrException<V,E extends Throwable & SensibleClone<E>> extends BlockingCell<ValueOrException<V,E>>
-
-
Constructor Summary
Constructors Constructor Description BlockingValueOrException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setException(E e)
void
setValue(V v)
V
uninterruptibleGetValue()
V
uninterruptibleGetValue(int timeout)
-
Methods inherited from class com.rabbitmq.utility.BlockingCell
get, get, set, setIfUnset, uninterruptibleGet, uninterruptibleGet
-
-
-
-
Method Detail
-
setValue
public void setValue(V v)
-
setException
public void setException(E e)
-
uninterruptibleGetValue
public V uninterruptibleGetValue() throws E extends Throwable & SensibleClone<E>
- Throws:
E extends Throwable & SensibleClone<E>
-
uninterruptibleGetValue
public V uninterruptibleGetValue(int timeout) throws E extends Throwable & SensibleClone<E>, TimeoutException
- Throws:
E extends Throwable & SensibleClone<E>
TimeoutException
-
-