Class InvocationOptions.Builder
java.lang.Object
dev.restate.common.InvocationOptions.Builder
- Enclosing class:
InvocationOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()@Nullable String@Nullable StringPREVIEW.Append this header to the list of configured headers.Append the given header map to the list of headers.idempotencyKey(String idempotencyKey) PREVIEW: Limit key to use within the scope.voidsetHeaders(@Nullable Map<String, String> headers) voidsetIdempotencyKey(@Nullable String idempotencyKey) voidsetLimitKey(@Nullable String limitKey) PREVIEW.
-
Method Details
-
idempotencyKey
- Parameters:
idempotencyKey- Idempotency key to attach in the request.- Returns:
- this instance, so the builder can be used fluently.
-
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.
-
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
Append the given header map to the list of headers.- Parameters:
newHeaders- headers to send together with the request.- Returns:
- this instance, so the builder can be used fluently.
-
getIdempotencyKey
-
setIdempotencyKey
- Parameters:
idempotencyKey- Idempotency key to attach in the request.
-
getLimitKey
PREVIEW. -
setLimitKey
PREVIEW.- Parameters:
limitKey- Limit key to attach in the request.
-
getHeaders
-
setHeaders
-
build
- Returns:
- build the request
-