Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ABORTED_CODE - Static variable in exception dev.restate.sdk.common.TerminalException
- AbortedExecutionException - Class in dev.restate.sdk.common
-
You MUST NOT catch this exception.
- abortTimeout() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- abortTimeout() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- abortTimeout(Duration) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
This timer guards against stalled invocations that are supposed to terminate.
- abortTimeout(Duration) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
This timer guards against stalled service/handler invocations that are supposed to terminate.
- Accept - Annotation Interface in dev.restate.sdk.annotation
-
Define the acceptable content type.
- acceptContentType() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- acceptContentType(String) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
Set the acceptable content type when ingesting HTTP requests.
- addMetadata(String, String) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- addMetadata(String, String) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- asyncResult() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Returns the value of the
asyncResultrecord component. - AsyncResult<T> - Interface in dev.restate.sdk.endpoint.definition
-
Interface to define interaction with deferred results.
- attachInvocation(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- awakeable() - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- Awakeable(String, AsyncResult<Slice>) - Constructor for record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Creates an instance of a
Awakeablerecord class.
B
- BAD_REQUEST_CODE - Static variable in exception dev.restate.sdk.common.TerminalException
- bind(ServiceDefinition) - Static method in class dev.restate.sdk.endpoint.Endpoint
- bind(ServiceDefinition) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Add a manual
ServiceDefinitionto the endpoint. - bind(Object) - Static method in class dev.restate.sdk.endpoint.Endpoint
- bind(Object) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Add a Restate service to the endpoint.
- bind(Object, HandlerRunner.Options) - Static method in class dev.restate.sdk.endpoint.Endpoint
- bind(Object, HandlerRunner.Options) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Like
Endpoint.Builder.bind(Object), but allows to provide options for the handler runner. - bind(Object, HandlerRunner.Options, Consumer<ServiceDefinition.Configurator>) - Static method in class dev.restate.sdk.endpoint.Endpoint
- bind(Object, HandlerRunner.Options, Consumer<ServiceDefinition.Configurator>) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Same as
Endpoint.Builder.bind(Object, HandlerRunner.Options)but allows to configure theServiceDefinitionbefore binding it. - bind(Object, Consumer<ServiceDefinition.Configurator>) - Static method in class dev.restate.sdk.endpoint.Endpoint
- bind(Object, Consumer<ServiceDefinition.Configurator>) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Same as
Endpoint.Builder.bind(Object)but allows to configure theServiceDefinitionbefore binding it. - body() - Method in class dev.restate.sdk.common.HandlerRequest
- bodyAsBodyBuffer() - Method in class dev.restate.sdk.common.HandlerRequest
- bodyAsByteArray() - Method in class dev.restate.sdk.common.HandlerRequest
- build() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
- build() - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- builder() - Static method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
- builder() - Static method in class dev.restate.sdk.endpoint.Endpoint
- Builder() - Constructor for class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
- Builder() - Constructor for class dev.restate.sdk.endpoint.Endpoint.Builder
- bytes(String) - Static method in class dev.restate.sdk.common.DurablePromiseKey
-
Create a new
DurablePromiseKeyfor bytes state. - bytes(String) - Static method in class dev.restate.sdk.common.StateKey
-
Create a new
StateKeyfor bytes state.
C
- call(Target, Slice, String, Collection<Map.Entry<String, String>>) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- callAsyncResult() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Returns the value of the
callAsyncResultrecord component. - CallResult(AsyncResult<String>, AsyncResult<Slice>) - Constructor for record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Creates an instance of a
CallResultrecord class. - cancelInvocation(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- CANCELLED_CODE - Static variable in exception dev.restate.sdk.common.TerminalException
- clear(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- clearAll() - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- configure(Consumer<HandlerDefinition.Configurator>) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- configure(Consumer<ServiceDefinition.Configurator>) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- configureHandler(String, Consumer<HandlerDefinition.Configurator>) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
Configure a specific handler of this service.
- contentType() - Element in annotation interface dev.restate.sdk.annotation.Json
-
Content-type to use in request/responses.
- contentType() - Element in annotation interface dev.restate.sdk.annotation.Raw
-
Content-type to use in request/responses.
- create(T, HandlerRunner.Options) - Method in interface dev.restate.sdk.endpoint.definition.ServiceDefinitionFactory
- createAllAsyncResult(List<AsyncResult<?>>) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- createAnyAsyncResult(List<AsyncResult<?>>) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- ctx() - Method in interface dev.restate.sdk.endpoint.definition.AsyncResult
- CustomSerdeFactory - Annotation Interface in dev.restate.sdk.annotation
-
Define the custom
SerdeFactoryto use for this service/virtual object/workflow.
D
- defaultPolicy() - Static method in class dev.restate.sdk.common.RetryPolicy
- dev.restate.sdk.annotation - package dev.restate.sdk.annotation
- dev.restate.sdk.common - package dev.restate.sdk.common
- dev.restate.sdk.endpoint - package dev.restate.sdk.endpoint
- dev.restate.sdk.endpoint.definition - package dev.restate.sdk.endpoint.definition
- dev.restate.sdk.version - package dev.restate.sdk.version
- discover(Object) - Static method in class dev.restate.sdk.endpoint.definition.ServiceDefinitionFactories
-
Resolve the code generated
ServiceDefinitionFactory - documentation() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- documentation() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- documentation(String) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
Documentation as shown in the UI, Admin REST API, and the generated OpenAPI documentation of this handler.
- documentation(String) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
Documentation as shown in the UI, Admin REST API, and the generated OpenAPI documentation of this service.
- DurablePromiseKey<T> - Class in dev.restate.sdk.common
-
This class holds information about durable promise's name and its type tag to be used for serializing and deserializing it.
E
- enableLazyState() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- enableLazyState() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- enableLazyState(Boolean) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
When set to
true, lazy state will be enabled for all invocations to this handler. - enableLazyState(Boolean) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
When set to
true, lazy state will be enabled for all invocations to this service. - enablePreviewContext() - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- Endpoint - Class in dev.restate.sdk.endpoint
-
Restate endpoint, encapsulating the configured services, together with additional options.
- Endpoint.Builder - Class in dev.restate.sdk.endpoint
- equals(Object) - Method in class dev.restate.sdk.common.HandlerRequest
- equals(Object) - Method in class dev.restate.sdk.common.RetryPolicy
- equals(Object) - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- equals(Object) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
- equals(Object) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- Exclusive - Annotation Interface in dev.restate.sdk.annotation
-
Defines a method as an exclusive handler, as opposed to
Sharedhandlers. - EXCLUSIVE - Enum constant in enum class dev.restate.sdk.endpoint.definition.HandlerType
- exponential(Duration, float) - Static method in class dev.restate.sdk.common.RetryPolicy
- exponentiationFactor() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Exponential backoff multiplier used to compute the next retry delay.
- exponentiationFactor() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
-
Exponential backoff multiplier used to compute the next retry delay.
- exponentiationFactor(Double) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Sets the exponential backoff multiplier used to compute the next retry delay.
F
- fail(Throwable) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
G
- get(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- get(String) - Method in interface dev.restate.sdk.endpoint.HeadersAccessor
- getAbortTimeout() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getAbortTimeout() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getAcceptContentType() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getCode() - Method in exception dev.restate.sdk.common.TerminalException
- getDocumentation() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getDocumentation() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getEnableLazyState() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getEnableLazyState() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getExponentiationFactor() - Method in class dev.restate.sdk.common.RetryPolicy
- getHandler(String) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getHandlers() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getHandlerType() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getIdempotencyRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getIdempotencyRetention() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getInactivityTimeout() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getInactivityTimeout() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getIngressPrivate() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getIngressPrivate() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getInitialDelay() - Method in class dev.restate.sdk.common.RetryPolicy
- getInvocationOutput(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- getInvocationRetryPolicy() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getInvocationRetryPolicy() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getJournalRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getJournalRetention() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getKeys() - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- getMaxAttempts() - Method in class dev.restate.sdk.common.RetryPolicy
- getMaxDelay() - Method in class dev.restate.sdk.common.RetryPolicy
- getMaxDuration() - Method in class dev.restate.sdk.common.RetryPolicy
- getMetadata() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getMetadata() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getName() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getOpenTelemetry() - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- getOpenTelemetry() - Method in class dev.restate.sdk.endpoint.Endpoint
- getRequestIdentityVerifier() - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- getRequestIdentityVerifier() - Method in class dev.restate.sdk.endpoint.Endpoint
- getRequestSerde() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getResponseSerde() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getRunner() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- getServiceDefinitions() - Method in class dev.restate.sdk.endpoint.Endpoint
- getServiceName() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getServiceType() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- getWorkflowRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- GIT_HASH - Static variable in class dev.restate.sdk.version.Version
H
- Handler - Annotation Interface in dev.restate.sdk.annotation
-
Annotate a method as Restate handler.
- HANDLER_CONTEXT_THREAD_LOCAL - Static variable in interface dev.restate.sdk.endpoint.definition.HandlerRunner
-
Thread local to store
HandlerContext. - HandlerContext - Interface in dev.restate.sdk.endpoint.definition
-
Internal interface to access Restate functionalities.
- HandlerContext.Awakeable - Record Class in dev.restate.sdk.endpoint.definition
- HandlerContext.CallResult - Record Class in dev.restate.sdk.endpoint.definition
- HandlerContext.RunCompleter - Interface in dev.restate.sdk.endpoint.definition
- HandlerDefinition<REQ,
RES> - Class in dev.restate.sdk.endpoint.definition -
This class represents a Restate handler.
- HandlerDefinition.Configurator - Class in dev.restate.sdk.endpoint.definition
-
Configurator for a
HandlerDefinition. - HandlerRequest - Class in dev.restate.sdk.common
-
This class encapsulates the inputs to a handler.
- HandlerRequest(InvocationId, Context, Slice, Map<String, String>) - Constructor for class dev.restate.sdk.common.HandlerRequest
- HandlerRunner<REQ,
RES> - Interface in dev.restate.sdk.endpoint.definition - HandlerRunner.Options - Interface in dev.restate.sdk.endpoint.definition
-
Marker interface of runner options.
- HandlerType - Enum Class in dev.restate.sdk.endpoint.definition
- hashCode() - Method in class dev.restate.sdk.common.HandlerRequest
- hashCode() - Method in class dev.restate.sdk.common.RetryPolicy
- hashCode() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Returns a hash code value for this object.
- hashCode() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- hashCode() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
- hashCode() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- headers() - Method in class dev.restate.sdk.common.HandlerRequest
- HeadersAccessor - Interface in dev.restate.sdk.endpoint
-
Abstraction for headers map.
I
- id() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Returns the value of the
idrecord component. - idempotencyRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- idempotencyRetention() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- idempotencyRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
The retention duration of idempotent requests to this service.
- idempotencyRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
The retention duration of idempotent requests to this service.
- inactivityTimeout() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- inactivityTimeout() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- inactivityTimeout(Duration) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
This timer guards against stalled invocations.
- inactivityTimeout(Duration) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
This timer guards against stalled invocations.
- ingressPrivate() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- ingressPrivate() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- ingressPrivate(Boolean) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
When set to
truethis handler cannot be invoked from the restate-server HTTP and Kafka ingress, but only from other services. - ingressPrivate(Boolean) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
When set to
truethis service, with all its handlers, cannot be invoked from the restate-server HTTP and Kafka ingress, but only from other services. - initialInterval() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Initial delay before the first retry attempt.
- initialInterval() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
-
Initial delay before the first retry attempt.
- initialInterval(Duration) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Sets the initial delay before the first retry attempt.
- INSTANCE - Static variable in class dev.restate.sdk.common.AbortedExecutionException
- INTERNAL_SERVER_ERROR_CODE - Static variable in exception dev.restate.sdk.common.TerminalException
- invocationId() - Method in class dev.restate.sdk.common.HandlerRequest
- InvocationId - Interface in dev.restate.sdk.common
-
This represents a stable identifier created by Restate for this invocation.
- invocationIdAsyncResult() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Returns the value of the
invocationIdAsyncResultrecord component. - invocationRetryPolicy() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- invocationRetryPolicy() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- invocationRetryPolicy(InvocationRetryPolicy) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
Retry policy used by Restate when invoking this handler.
- invocationRetryPolicy(InvocationRetryPolicy) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
Retry policy used by Restate when invoking this service.
- invocationRetryPolicy(InvocationRetryPolicy.Builder) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- invocationRetryPolicy(InvocationRetryPolicy.Builder) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- InvocationRetryPolicy - Class in dev.restate.sdk.endpoint.definition
-
Retry policy used by Restate when retrying failed handler invocations.
- InvocationRetryPolicy.Builder - Class in dev.restate.sdk.endpoint.definition
- InvocationRetryPolicy.OnMaxAttempts - Enum Class in dev.restate.sdk.endpoint.definition
-
Behavior when retry policy reaches
InvocationRetryPolicy.maxAttempts()attempts. - isExperimentalContextEnabled() - Method in class dev.restate.sdk.endpoint.Endpoint
J
- journalRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- journalRetention() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- journalRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
The journal retention for invocations to this handler.
- journalRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
The journal retention.
- Json - Annotation Interface in dev.restate.sdk.annotation
-
Serialize/Deserialize the annotated element as Json
K
- keys() - Method in interface dev.restate.sdk.endpoint.HeadersAccessor
- KILL - Enum constant in enum class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.OnMaxAttempts
-
Kill the invocation once retries are exhausted.
M
- map(ThrowingFunction<T, CompletableFuture<U>>) - Method in interface dev.restate.sdk.endpoint.definition.AsyncResult
- map(ThrowingFunction<T, CompletableFuture<U>>, ThrowingFunction<TerminalException, CompletableFuture<U>>) - Method in interface dev.restate.sdk.endpoint.definition.AsyncResult
- mapFailure(ThrowingFunction<TerminalException, CompletableFuture<T>>) - Method in interface dev.restate.sdk.endpoint.definition.AsyncResult
- maxAttempts() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Maximum number of attempts before giving up retrying.
- maxAttempts() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
-
Maximum number of attempts before giving up retrying.
- maxAttempts(Integer) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Sets the maximum number of attempts before giving up retrying.
- maxInterval() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Upper bound for the computed retry delay.
- maxInterval() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
-
Upper bound for the computed retry delay.
- maxInterval(Duration) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Sets the upper bound for the computed retry delay.
- metadata() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- metadata() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- metadata(Map<String, String>) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
Handler metadata, as propagated in the Admin REST API.
- metadata(Map<String, String>) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
Service metadata, as propagated in the Admin REST API.
N
- name() - Element in annotation interface dev.restate.sdk.annotation.Service
-
Deprecated, for removal: This API element is subject to removal in a future version.
- name() - Element in annotation interface dev.restate.sdk.annotation.VirtualObject
-
Deprecated, for removal: This API element is subject to removal in a future version.use the
Nameannotation instead. Note: if you were using a name override, this won't influence anymore the prefix of the generated class. - name() - Element in annotation interface dev.restate.sdk.annotation.Workflow
-
Deprecated, for removal: This API element is subject to removal in a future version.use the
Nameannotation instead. Note: if you were using a name override, this won't influence anymore the prefix of the generated class. - name() - Method in class dev.restate.sdk.common.DurablePromiseKey
- name() - Method in class dev.restate.sdk.common.StateKey
- Name - Annotation Interface in dev.restate.sdk.annotation
-
Name of the service/handler for Restate.
- noop() - Static method in interface dev.restate.sdk.endpoint.RequestIdentityVerifier
O
- objectKey() - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- of(String, HandlerType, Serde<REQ>, Serde<RES>, HandlerRunner<REQ, RES>) - Static method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- of(String, ServiceType, Collection<HandlerDefinition<?, ?>>) - Static method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- of(String, TypeTag<T>) - Static method in class dev.restate.sdk.common.DurablePromiseKey
-
Create a new
DurablePromiseKey. - of(String, TypeTag<T>) - Static method in class dev.restate.sdk.common.StateKey
-
Create a new
StateKey. - of(String, Class<T>) - Static method in class dev.restate.sdk.common.DurablePromiseKey
-
Create a new
DurablePromiseKey. - of(String, Class<T>) - Static method in class dev.restate.sdk.common.StateKey
-
Create a new
StateKey. - onMaxAttempts() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Behavior when the configured
InvocationRetryPolicy.Builder.maxAttempts()is reached. - onMaxAttempts() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
-
Behavior when the configured
InvocationRetryPolicy.maxAttempts()is reached. - onMaxAttempts(InvocationRetryPolicy.OnMaxAttempts) - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.Builder
-
Sets the behavior when the configured
InvocationRetryPolicy.Builder.maxAttempts()is reached. - openTelemetryContext() - Method in class dev.restate.sdk.common.HandlerRequest
P
- PAUSE - Enum constant in enum class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.OnMaxAttempts
-
Pause the invocation once retries are exhausted.
- peekPromise(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- poll() - Method in interface dev.restate.sdk.endpoint.definition.AsyncResult
- promise(String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- proposeFailure(Throwable, RetryPolicy) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext.RunCompleter
- proposeSuccess(Slice) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext.RunCompleter
R
- Raw - Annotation Interface in dev.restate.sdk.annotation
-
Skip serialization/deserialization of the annotated element.
- rejectAwakeable(String, TerminalException) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- rejectPromise(String, TerminalException) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- request() - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- RequestIdentityVerifier - Interface in dev.restate.sdk.endpoint
-
Interface to verify requests.
- resolveAwakeable(String, Slice) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- resolvePromise(String, Slice) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- resolveService(String) - Method in class dev.restate.sdk.endpoint.Endpoint
- RetryPolicy - Class in dev.restate.sdk.common
-
Retry policy configuration.
- run(HandlerContext, Serde<REQ>, Serde<RES>, AtomicReference<Runnable>) - Method in interface dev.restate.sdk.endpoint.definition.HandlerRunner
S
- send(Target, Slice, String, Collection<Map.Entry<String, String>>, Duration) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- serdeInfo() - Method in class dev.restate.sdk.common.DurablePromiseKey
- serdeInfo() - Method in class dev.restate.sdk.common.StateKey
- Service - Annotation Interface in dev.restate.sdk.annotation
-
Annotation to define a class/interface as Restate Service.
- SERVICE - Enum constant in enum class dev.restate.sdk.endpoint.definition.ServiceType
- ServiceDefinition - Class in dev.restate.sdk.endpoint.definition
-
This class represents a Restate service.
- ServiceDefinition.Configurator - Class in dev.restate.sdk.endpoint.definition
-
Configurator for a
ServiceDefinition. - ServiceDefinitionFactories - Class in dev.restate.sdk.endpoint.definition
- ServiceDefinitionFactories() - Constructor for class dev.restate.sdk.endpoint.definition.ServiceDefinitionFactories
- ServiceDefinitionFactory<T> - Interface in dev.restate.sdk.endpoint.definition
- ServiceType - Enum Class in dev.restate.sdk.endpoint.definition
- set(String, Slice) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- setExponentiationFactor(float) - Method in class dev.restate.sdk.common.RetryPolicy
-
Exponentiation factor to use when computing the next retry delay.
- setInitialDelay(Duration) - Method in class dev.restate.sdk.common.RetryPolicy
-
Initial retry delay for the first retry attempt.
- setMaxAttempts(Integer) - Method in class dev.restate.sdk.common.RetryPolicy
-
Maximum number of attempts, including the initial, before giving up retrying.
- setMaxDelay(Duration) - Method in class dev.restate.sdk.common.RetryPolicy
-
Maximum delay between retries.
- setMaxDuration(Duration) - Method in class dev.restate.sdk.common.RetryPolicy
-
Maximum duration of the retry loop.
- setOpenTelemetry(OpenTelemetry) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- setRequestIdentityVerifier(RequestIdentityVerifier) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
- Shared - Annotation Interface in dev.restate.sdk.annotation
-
Defines a method as a Shared handler.
- SHARED - Enum constant in enum class dev.restate.sdk.endpoint.definition.HandlerType
- sneakyThrow() - Static method in class dev.restate.sdk.common.AbortedExecutionException
- StateKey<T> - Class in dev.restate.sdk.common
-
This class holds information about state's name and its type tag to be used for serializing and deserializing it.
- submitRun(String, Consumer<HandlerContext.RunCompleter>) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- supports(Object) - Method in interface dev.restate.sdk.endpoint.definition.ServiceDefinitionFactory
T
- TerminalException - Exception in dev.restate.sdk.common
-
When thrown in a Restate service method, it will complete the invocation with an error.
- TerminalException() - Constructor for exception dev.restate.sdk.common.TerminalException
- TerminalException(int) - Constructor for exception dev.restate.sdk.common.TerminalException
-
Like
TerminalException(int, String), without message. - TerminalException(int, String) - Constructor for exception dev.restate.sdk.common.TerminalException
-
Create a new
TerminalException. - TerminalException(String) - Constructor for exception dev.restate.sdk.common.TerminalException
- TimeoutException - Exception in dev.restate.sdk.common
- TimeoutException(String) - Constructor for exception dev.restate.sdk.common.TimeoutException
- timer(Duration, String) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- toRandomSeed() - Method in interface dev.restate.sdk.common.InvocationId
- toString() - Method in class dev.restate.sdk.common.HandlerRequest
- toString() - Method in interface dev.restate.sdk.common.InvocationId
- toString() - Method in class dev.restate.sdk.common.RetryPolicy
- toString() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.Awakeable
-
Returns a string representation of this record class.
- toString() - Method in record class dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
-
Returns a string representation of this record class.
- toString() - Method in class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy
V
- value() - Element in annotation interface dev.restate.sdk.annotation.Accept
- value() - Element in annotation interface dev.restate.sdk.annotation.CustomSerdeFactory
- value() - Element in annotation interface dev.restate.sdk.annotation.Name
- valueOf(String) - Static method in enum class dev.restate.sdk.endpoint.definition.HandlerType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.OnMaxAttempts
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.restate.sdk.endpoint.definition.ServiceType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.restate.sdk.endpoint.definition.HandlerType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.restate.sdk.endpoint.definition.InvocationRetryPolicy.OnMaxAttempts
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.restate.sdk.endpoint.definition.ServiceType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyRequest(HeadersAccessor) - Method in interface dev.restate.sdk.endpoint.RequestIdentityVerifier
- Version - Class in dev.restate.sdk.version
- VERSION - Static variable in class dev.restate.sdk.version.Version
- VIRTUAL_OBJECT - Enum constant in enum class dev.restate.sdk.endpoint.definition.ServiceType
- VirtualObject - Annotation Interface in dev.restate.sdk.annotation
-
Annotation to define a class/interface as Restate VirtualObject.
W
- withAcceptContentType(String) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- withDocumentation(String) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- withDocumentation(String) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- withMetadata(Map<String, String>) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition
- withMetadata(Map<String, String>) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition
- withOpenTelemetry(OpenTelemetry) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Set the
OpenTelemetryimplementation for tracing and metrics. - withRequestIdentityVerifier(RequestIdentityVerifier) - Method in class dev.restate.sdk.endpoint.Endpoint.Builder
-
Set the request identity verifier for this endpoint.
- Workflow - Annotation Interface in dev.restate.sdk.annotation
-
Annotation to define a class/interface as Restate Workflow.
- WORKFLOW - Enum constant in enum class dev.restate.sdk.endpoint.definition.HandlerType
- WORKFLOW - Enum constant in enum class dev.restate.sdk.endpoint.definition.ServiceType
- workflowRetention() - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
- workflowRetention() - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
- workflowRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.HandlerDefinition.Configurator
-
The retention duration for this workflow handler.
- workflowRetention(Duration) - Method in class dev.restate.sdk.endpoint.definition.ServiceDefinition.Configurator
-
The retention duration of idempotent requests to this workflow service.
- wrap(Map<String, String>) - Static method in interface dev.restate.sdk.endpoint.HeadersAccessor
- writeOutput(Slice) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
- writeOutput(TerminalException) - Method in interface dev.restate.sdk.endpoint.definition.HandlerContext
X
- X_RESTATE_SERVER - Static variable in class dev.restate.sdk.version.Version
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Nameannotation instead. Note: if you were using a name override, this won't influence anymore the prefix of the generated class.