Interface CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext>
- Type Parameters:
RequestT- , the web service request that was madeResponseT- the response or the fault (Exception) that needs to handledClientT- , the client that was used to invokeModelT- , the resource model object that we are currently working againstCallbackT- , the callback context that contains results
- All Known Subinterfaces:
CallChain.Exceptional<RequestT,,ResponseT, ClientT, ModelT, CallbackT> CallChain.Stabilizer<RequestT,ResponseT, ClientT, ModelT, CallbackT>
- Enclosing interface:
- CallChain
public static interface CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext>
One the call sequence has completed successfully, this is called to provide
the progress event.
-
Method Summary
Modifier and TypeMethodDescriptiondone(CallChain.Callback<RequestT, ResponseT, ClientT, ModelT, CallbackT, ProgressEvent<ModelT, CallbackT>> callback) default ProgressEvent<ModelT,CallbackT> progress()default ProgressEvent<ModelT,CallbackT> progress(int callbackDelay) default ProgressEvent<ModelT,CallbackT> success()
-
Method Details
-
done
- Parameters:
func- , this works with only the response of the web service call to provideProgressEventfunction- Returns:
ProgressEventfor successful web call.
-
done
ProgressEvent<ModelT,CallbackT> done(CallChain.Callback<RequestT, ResponseT, ClientT, ModelT, CallbackT, ProgressEvent<ModelT, CallbackT>> callback) - Parameters:
callback- , similar to above function can make additional calls etc. to return theProgressEvent- Returns:
ProgressEventfor a successful web call
-
success
- Returns:
ProgressEventHelper function that provides aOperationStatus.SUCCESSstatus when the callchain is done
-
progress
- Returns:
ProgressEventHelper function that provides aOperationStatus.IN_PROGRESSstatus when the callchain is done
-
progress
- Parameters:
callbackDelay- the number of seconds to delay before calling back into this externally- Returns:
ProgressEventHelper function that provides aOperationStatus.IN_PROGRESSstatus when the callchain is done with callback delay
-