View Javadoc

1   package net.sf.crispy.concurrent;
2   
3   /**
4    * Interface for asynchronous service invocation.
5    * 
6    * @author Linke
7    * @since Version 1.0
8    *
9    */
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  }