Package org.distributeme.core.asynch
Class SingleCallHandler
java.lang.Object
org.distributeme.core.asynch.SingleCallHandler
- All Implemented Interfaces:
CallBackHandler
This is a callhandler implementation which is used in generated asynchronous stubs.
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled upon erroneous execution of a method.Getter for the fieldreturnException.Getter for the fieldreturnValue.booleanisError()isError.booleanisFinished.booleanisSuccess.voidCalled upon successful execution of a method.voidwaitForResults.voidwaitForResults(long timeout) waitForResults.
-
Constructor Details
-
SingleCallHandler
public SingleCallHandler()Constructor for SingleCallHandler.
-
-
Method Details
-
waitForResults
waitForResults.
- Parameters:
timeout- a long.- Throws:
InterruptedException- if any.
-
waitForResults
waitForResults.
- Throws:
InterruptedException- if any.
-
isFinished
public boolean isFinished()isFinished.
- Returns:
- a boolean.
-
success
Called upon successful execution of a method. If the called method was a void method the parameter o will be null.- Specified by:
successin interfaceCallBackHandler- Parameters:
o- null or function call result.
-
error
Called upon erroneous execution of a method.- Specified by:
errorin interfaceCallBackHandler- Parameters:
e- exception that occured in the method.
-
isError
public boolean isError()isError.
- Returns:
- a boolean.
-
isSuccess
public boolean isSuccess()isSuccess.
- Returns:
- a boolean.
-
getReturnValue
Getter for the field
returnValue.- Returns:
- a
Objectobject.
-
getReturnException
Getter for the field
returnException.- Returns:
- a
Exceptionobject.
-