public class SingleCallHandler extends Object implements CallBackHandler
Constructor and Description |
---|
SingleCallHandler() |
Modifier and Type | Method and Description |
---|---|
void |
error(Exception e)
Called upon erroneous execution of a method.
|
Exception |
getReturnException() |
Object |
getReturnValue() |
boolean |
isError() |
boolean |
isFinished() |
boolean |
isSuccess() |
void |
success(Object o)
Called upon successful execution of a method.
|
void |
waitForResults() |
void |
waitForResults(long timeout) |
public void waitForResults(long timeout) throws InterruptedException
InterruptedException
public void waitForResults() throws InterruptedException
InterruptedException
public boolean isFinished()
public void success(Object o)
CallBackHandler
success
in interface CallBackHandler
o
- null or function call result.public void error(Exception e)
CallBackHandler
error
in interface CallBackHandler
e
- exception that occured in the method.public boolean isError()
public boolean isSuccess()
public Object getReturnValue()
public Exception getReturnException()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.