Package dev.restate.common
Class InvocationOptions.Builder
java.lang.Object
dev.restate.common.InvocationOptions.Builder
- Enclosing class:
InvocationOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()@Nullable StringAppend this header to the list of configured headers.Append the given header map to the list of headers.idempotencyKey(String idempotencyKey) voidsetHeaders(@Nullable Map<String, String> headers) voidsetIdempotencyKey(@Nullable String idempotencyKey)
-
Method Details
-
idempotencyKey
- Parameters:
idempotencyKey- Idempotency 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.
-
getHeaders
-
setHeaders
- Parameters:
headers- headers to send together with the request. This will overwrite the already configured headers
-
build
- Returns:
- build the request
-