Class SingleCallHandler

java.lang.Object
org.distributeme.core.asynch.SingleCallHandler
All Implemented Interfaces:
CallBackHandler

public class SingleCallHandler extends Object implements CallBackHandler
This is a callhandler implementation which is used in generated asynchronous stubs.
Version:
$Id: $Id
Author:
lrosenberg
  • Constructor Details

    • SingleCallHandler

      public SingleCallHandler()

      Constructor for SingleCallHandler.

  • Method Details

    • waitForResults

      public void waitForResults(long timeout) throws InterruptedException

      waitForResults.

      Parameters:
      timeout - a long.
      Throws:
      InterruptedException - if any.
    • waitForResults

      public void waitForResults() throws InterruptedException

      waitForResults.

      Throws:
      InterruptedException - if any.
    • isFinished

      public boolean isFinished()

      isFinished.

      Returns:
      a boolean.
    • success

      public void success(Object o)
      Called upon successful execution of a method. If the called method was a void method the parameter o will be null.
      Specified by:
      success in interface CallBackHandler
      Parameters:
      o - null or function call result.
    • error

      public void error(Exception e)
      Called upon erroneous execution of a method.
      Specified by:
      error in interface CallBackHandler
      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

      public Object getReturnValue()

      Getter for the field returnValue.

      Returns:
      a Object object.
    • getReturnException

      public Exception getReturnException()

      Getter for the field returnException.

      Returns:
      a Exception object.