Package org.copperengine.core.util
Class BlockingResponseReceiver<E>
- java.lang.Object
-
- org.copperengine.core.util.BlockingResponseReceiver<E>
-
- All Implemented Interfaces:
AsyncResponseReceiver<E>
public class BlockingResponseReceiver<E> extends java.lang.Object implements AsyncResponseReceiver<E>
-
-
Constructor Summary
Constructors Constructor Description BlockingResponseReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
E
getResponse()
boolean
isResponseReceived()
void
setException(java.lang.Exception exception)
void
setResponse(E response)
void
wait4response(long timeoutMSec)
-
-
-
Method Detail
-
setException
public void setException(java.lang.Exception exception)
- Specified by:
setException
in interfaceAsyncResponseReceiver<E>
-
setResponse
public void setResponse(E response)
- Specified by:
setResponse
in interfaceAsyncResponseReceiver<E>
-
wait4response
public void wait4response(long timeoutMSec) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
isResponseReceived
public boolean isResponseReceived()
-
getException
public java.lang.Exception getException()
-
getResponse
public E getResponse()
-
-