Class Handler
java.lang.Object
dev.restate.sdk.core.generated.manifest.Handler
Handler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
RetryPolicyOnMaxAttemptsstatic enum
HandlerType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Abort timeout duration, expressed in milliseconds.Documentation for this handler definition.If true, lazy state is enabled.Idempotency retention duration, expressed in milliseconds.Inactivity timeout duration, expressed in milliseconds.If true, the service cannot be invoked from the HTTP nor Kafka ingress.getInput()
InputPayloadJournal retention duration, expressed in milliseconds.Custom metadata of this handler definition.getName()
(Required)OutputPayloadRetry policy exponentiation factor.Retry policy initial interval, expressed in milliseconds.Retry policy max attempts.Retry policy max interval, expressed in milliseconds.RetryPolicyOnMaxAttemptsgetTy()
HandlerTypeWorkflow completion retention duration, expressed in milliseconds.int
hashCode()
void
setAbortTimeout
(Long abortTimeout) Abort timeout duration, expressed in milliseconds.void
setDocumentation
(String documentation) Documentation for this handler definition.void
setEnableLazyState
(Boolean enableLazyState) If true, lazy state is enabled.void
setIdempotencyRetention
(Long idempotencyRetention) Idempotency retention duration, expressed in milliseconds.void
setInactivityTimeout
(Long inactivityTimeout) Inactivity timeout duration, expressed in milliseconds.void
setIngressPrivate
(Boolean ingressPrivate) If true, the service cannot be invoked from the HTTP nor Kafka ingress.void
InputPayloadvoid
setJournalRetention
(Long journalRetention) Journal retention duration, expressed in milliseconds.void
setMetadata
(Metadata metadata) Custom metadata of this handler definition.void
(Required)void
OutputPayloadvoid
setRetryPolicyExponentiationFactor
(Double retryPolicyExponentiationFactor) Retry policy exponentiation factor.void
setRetryPolicyInitialInterval
(Long retryPolicyInitialInterval) Retry policy initial interval, expressed in milliseconds.void
setRetryPolicyMaxAttempts
(Long retryPolicyMaxAttempts) Retry policy max attempts.void
setRetryPolicyMaxInterval
(Long retryPolicyMaxInterval) Retry policy max interval, expressed in milliseconds.void
setRetryPolicyOnMaxAttempts
(Handler.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) RetryPolicyOnMaxAttemptsvoid
setTy
(Handler.Ty ty) HandlerTypevoid
setWorkflowCompletionRetention
(Long workflowCompletionRetention) Workflow completion retention duration, expressed in milliseconds.toString()
withAbortTimeout
(Long abortTimeout) withDocumentation
(String documentation) withEnableLazyState
(Boolean enableLazyState) withIdempotencyRetention
(Long idempotencyRetention) withInactivityTimeout
(Long inactivityTimeout) withIngressPrivate
(Boolean ingressPrivate) withJournalRetention
(Long journalRetention) withMetadata
(Metadata metadata) withOutput
(Output output) withRetryPolicyExponentiationFactor
(Double retryPolicyExponentiationFactor) withRetryPolicyInitialInterval
(Long retryPolicyInitialInterval) withRetryPolicyMaxAttempts
(Long retryPolicyMaxAttempts) withRetryPolicyMaxInterval
(Long retryPolicyMaxInterval) withRetryPolicyOnMaxAttempts
(Handler.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) withTy
(Handler.Ty ty) withWorkflowCompletionRetention
(Long workflowCompletionRetention)
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
getName
(Required) -
setName
(Required) -
withName
-
getDocumentation
Documentation for this handler definition. No format is enforced, but generally Markdown is assumed. -
setDocumentation
Documentation for this handler definition. No format is enforced, but generally Markdown is assumed. -
withDocumentation
-
getTy
HandlerTypeIf unspecified, defaults to EXCLUSIVE for Virtual Object or WORKFLOW for Workflows. This should be unset for Services.
-
setTy
HandlerTypeIf unspecified, defaults to EXCLUSIVE for Virtual Object or WORKFLOW for Workflows. This should be unset for Services.
-
withTy
-
getInput
InputPayloadDescription of an input payload. This will be used by Restate to validate incoming requests.
-
setInput
InputPayloadDescription of an input payload. This will be used by Restate to validate incoming requests.
-
withInput
-
getOutput
OutputPayloadDescription of an output payload.
-
setOutput
OutputPayloadDescription of an output payload.
-
withOutput
-
getInactivityTimeout
Inactivity timeout duration, expressed in milliseconds. -
setInactivityTimeout
Inactivity timeout duration, expressed in milliseconds. -
withInactivityTimeout
-
getAbortTimeout
Abort timeout duration, expressed in milliseconds. -
setAbortTimeout
Abort timeout duration, expressed in milliseconds. -
withAbortTimeout
-
getJournalRetention
Journal retention duration, expressed in milliseconds. -
setJournalRetention
Journal retention duration, expressed in milliseconds. -
withJournalRetention
-
getIdempotencyRetention
Idempotency retention duration, expressed in milliseconds. This is NOT VALID when HandlerType == WORKFLOW -
setIdempotencyRetention
Idempotency retention duration, expressed in milliseconds. This is NOT VALID when HandlerType == WORKFLOW -
withIdempotencyRetention
-
getWorkflowCompletionRetention
Workflow completion retention duration, expressed in milliseconds. This is valid ONLY when HandlerType == WORKFLOW -
setWorkflowCompletionRetention
Workflow completion retention duration, expressed in milliseconds. This is valid ONLY when HandlerType == WORKFLOW -
withWorkflowCompletionRetention
-
getEnableLazyState
If true, lazy state is enabled. -
setEnableLazyState
If true, lazy state is enabled. -
withEnableLazyState
-
getIngressPrivate
If true, the service cannot be invoked from the HTTP nor Kafka ingress. -
setIngressPrivate
If true, the service cannot be invoked from the HTTP nor Kafka ingress. -
withIngressPrivate
-
getRetryPolicyInitialInterval
Retry policy initial interval, expressed in milliseconds. -
setRetryPolicyInitialInterval
Retry policy initial interval, expressed in milliseconds. -
withRetryPolicyInitialInterval
-
getRetryPolicyMaxInterval
Retry policy max interval, expressed in milliseconds. -
setRetryPolicyMaxInterval
Retry policy max interval, expressed in milliseconds. -
withRetryPolicyMaxInterval
-
getRetryPolicyMaxAttempts
Retry policy max attempts. -
setRetryPolicyMaxAttempts
Retry policy max attempts. -
withRetryPolicyMaxAttempts
-
getRetryPolicyExponentiationFactor
Retry policy exponentiation factor. -
setRetryPolicyExponentiationFactor
Retry policy exponentiation factor. -
withRetryPolicyExponentiationFactor
-
getRetryPolicyOnMaxAttempts
RetryPolicyOnMaxAttemptsRetry policy behavior on max attempts.
-
setRetryPolicyOnMaxAttempts
RetryPolicyOnMaxAttemptsRetry policy behavior on max attempts.
-
withRetryPolicyOnMaxAttempts
public Handler withRetryPolicyOnMaxAttempts(Handler.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) -
getMetadata
Custom metadata of this handler definition. This metadata is shown on the Admin API when querying the service/handler definition. -
setMetadata
Custom metadata of this handler definition. This metadata is shown on the Admin API when querying the service/handler definition. -
withMetadata
-
toString
-
hashCode
public int hashCode() -
equals
-