use of org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse in project cxf by apache.
the class GreeterImpl method greetMeSometimeAsync.
public Future<?> greetMeSometimeAsync(final String me, final AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
LOG.info("Executing operation greetMeSometimeAsync asynchronously");
System.out.println("Executing operation greetMeSometimeAsync asynchronously\n");
final ServerAsyncResponse<GreetMeSometimeResponse> r = new ServerAsyncResponse<GreetMeSometimeResponse>();
new Thread() {
public void run() {
GreetMeSometimeResponse resp = new GreetMeSometimeResponse();
resp.setResponseType("How are you " + me);
r.set(resp);
System.out.println("Responding on background thread\n");
asyncHandler.handleResponse(r);
}
}.start();
return r;
}
Aggregations