Package com.atlassian.bitbucket.request
Interface RequestCallback<T,E extends Exception>
public interface RequestCallback<T,E extends Exception>
Callback provided to callers of
RequestManager.doAsRequest(RequestCallback, RequestInfoProvider)
. The callback
provides all information in the RequestInfoProvider
plus a generated requestId.-
Method Summary
Modifier and TypeMethodDescriptionwithRequest
(RequestContext requestContext) Callback method that is called byRequestManager.doAsRequest(RequestCallback, RequestInfoProvider)
-
Method Details
-
withRequest
Callback method that is called byRequestManager.doAsRequest(RequestCallback, RequestInfoProvider)
- Parameters:
requestContext
- information about the current request, including a generated request id.- Returns:
- the value that should be returned by
RequestManager.doAsRequest(RequestCallback, RequestInfoProvider)
- Throws:
E
- if the callback fails
-