blob: 7bba2db44cf418aaf4274e585b3d0d22fc18acd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package calculator;
import java.util.concurrent.Future;
import javax.xml.ws.AsyncHandler;
import org.oasisopen.sca.annotation.Remotable;
/**
* Async client version of the CalculatorService interface
*
*/
@Remotable
public interface CalculateViaAsyncRef {
//public Response<String> calculate( Integer i1);
// Sync
public String calculate(Integer i1);
// Aysnc Poll
public Future<String> calculateAsync(Integer i1);
// Async Callback
public Future<String> calculateAsync(Integer i1, AsyncHandler<String> handler);
}
|