Interface RequestBuilder<Req,Res>
- All Superinterfaces:
Request<Req,Res>
- All Known Subinterfaces:
WorkflowRequestBuilder<Req,Res>
Options for requests to Restate services.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Append this header to the list of configured headers.Append the given header map to the list of headers.idempotencyKey(@Nullable String idempotencyKey) PREVIEW: Limit key to use within the scope.setHeaders(@Nullable Map<String, String> headers) setIdempotencyKey(@Nullable String idempotencyKey) setLimitKey(@Nullable String limitKey) PREVIEW.Methods inherited from interface Request
getHeaders, getIdempotencyKey, getLimitKey, getRequest, getRequestTypeTag, getResponseTypeTag, getTarget, toBuilder
-
Method Details
-
idempotencyKey
- Parameters:
idempotencyKey- Idempotency key to attach in the request.- Returns:
- this instance, so the builder can be used fluently.
-
setIdempotencyKey
- Parameters:
idempotencyKey- Idempotency key to attach in the request.
-
limitKey
PREVIEW: Limit key to use within the scope. Requiresscopeto be set (seeTarget.scoped(String)).- Parameters:
limitKey- Limit key to attach in the request.- Returns:
- this instance, so the builder can be used fluently.
-
setLimitKey
PREVIEW.- Parameters:
limitKey- Limit key to attach in the request.
-
header
Append this header to the list of configured headers.- Parameters:
key- header keyvalue- header value- Returns:
- this instance, so the builder can be used fluently.
-
headers
-
setHeaders
-
build
-