com.rabbitmq.utility
Class BlockingValueOrException<V,E extends java.lang.Throwable & SensibleClone<E>>

java.lang.Object
  extended by com.rabbitmq.utility.BlockingCell<ValueOrException<V,E>>
      extended by com.rabbitmq.utility.BlockingValueOrException<V,E>

public class BlockingValueOrException<V,E extends java.lang.Throwable & SensibleClone<E>>
extends BlockingCell<ValueOrException<V,E>>


Constructor Summary
BlockingValueOrException()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingValueOrException

public BlockingValueOrException()
Method Detail

setValue

public void setValue(V v)

setException

public void setException(E e)

uninterruptibleGetValue

public V uninterruptibleGetValue()
                          throws E extends java.lang.Throwable & SensibleClone<E>
Throws:
E extends java.lang.Throwable & SensibleClone<E>

uninterruptibleGetValue

public V uninterruptibleGetValue(int timeout)
                          throws E extends java.lang.Throwable & SensibleClone<E>,
                                 java.util.concurrent.TimeoutException
Throws:
E extends java.lang.Throwable & SensibleClone<E>
java.util.concurrent.TimeoutException