org.drools.grid.internal.responsehandlers
Class AbstractBaseResponseHandler
java.lang.Object
org.drools.grid.internal.responsehandlers.AbstractBaseResponseHandler
- All Implemented Interfaces:
- MessageReceiverHandler
- Direct Known Subclasses:
- AsyncMessageResponseHandler, BlockingMessageResponseHandler
public abstract class AbstractBaseResponseHandler
- extends Object
- implements MessageReceiverHandler
Abstract base class for client ResponseHandlers. Provides synchonized access to done which represents
if the response is completed. Also has an error which will be set when there is a problem with
a response. Users of this class should check to see if the response completed successfully, via
the isDone and the hasError.
Please note that the error is actually the Exception that occured on the server while
processing the request.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBaseResponseHandler
public AbstractBaseResponseHandler()
exceptionReceived
public void exceptionReceived(Conversation conversation,
ExceptionMessage msg)
- Specified by:
exceptionReceived in interface MessageReceiverHandler
hasError
public boolean hasError()
getError
public Throwable getError()
setError
public void setError(Throwable error)
isDone
public boolean isDone()
setDone
protected void setDone(boolean done)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.