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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ProgressEvent<ModelT,CallbackT>done(Function<ResponseT,ProgressEvent<ModelT,CallbackT>> func)ProgressEvent<ModelT,CallbackT>done(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 Detail
-
done
ProgressEvent<ModelT,CallbackT> done(Function<ResponseT,ProgressEvent<ModelT,CallbackT>> func)
- 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
default ProgressEvent<ModelT,CallbackT> success()
- Returns:
ProgressEventHelper function that provides aOperationStatus.SUCCESSstatus when the callchain is done
-
progress
default ProgressEvent<ModelT,CallbackT> progress()
- Returns:
ProgressEventHelper function that provides aOperationStatus.IN_PROGRESSstatus when the callchain is done
-
progress
default ProgressEvent<ModelT,CallbackT> progress(int callbackDelay)
- 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
-
-