Search in sources :

Example 1 with FetchValueRequest

use of webpiecesxxxxxpackage.service.FetchValueRequest in project webpieces by deanhiller.

the class MainController method myAsyncMethod.

public XFuture<Action> myAsyncMethod() {
    FetchValueRequest request = new FetchValueRequest("dean", 21);
    XFuture<FetchValueResponse> remoteValue = service.fetchValue(request);
    // fetchRemoteValue("dean", 21);
    return remoteValue.thenApply(s -> convertToAction(s.getNum()));
}
Also used : FetchValueRequest(webpiecesxxxxxpackage.service.FetchValueRequest) FetchValueResponse(webpiecesxxxxxpackage.service.FetchValueResponse)

Aggregations

FetchValueRequest (webpiecesxxxxxpackage.service.FetchValueRequest)1 FetchValueResponse (webpiecesxxxxxpackage.service.FetchValueResponse)1