01: package net.sf.crispy.concurrent;
02:
03: /**
04: * Interface for asynchronous service invocation.
05: *
06: * @author Linke
07: * @since Version 1.0
08: *
09: */
10: public interface AsynchronousCallback {
11:
12: /**
13: * Problems by executed the method. A exception is thrown.
14: *
15: * @param pvThrowable The Exception (problem).
16: * @param pvMethodName Name from method.
17: */
18: public void handleError(Throwable pvThrowable, String pvMethodName);
19:
20: /**
21: * Method is successful executed.
22: * @param pvResult Result value.
23: * @param pvMethodName Name from method
24: */
25: public void handleResult(Object pvResult, String pvMethodName);
26: }
|