public AllocateAddressResult call() throws Exception { return allocateAddress(allocateAddressRequest); } });
public AllocateAddressResult call() throws Exception { AllocateAddressResult result; try { result = allocateAddress(allocateAddressRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(allocateAddressRequest, result); return result; } });