Class Handler
java.lang.Object
dev.restate.sdk.core.generated.manifest.Handler
Handler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRetryPolicyOnMaxAttemptsstatic enumHandlerType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAbort 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.inthashCode()voidsetAbortTimeout(Long abortTimeout) Abort timeout duration, expressed in milliseconds.voidsetDocumentation(String documentation) Documentation for this handler definition.voidsetEnableLazyState(Boolean enableLazyState) If true, lazy state is enabled.voidsetIdempotencyRetention(Long idempotencyRetention) Idempotency retention duration, expressed in milliseconds.voidsetInactivityTimeout(Long inactivityTimeout) Inactivity timeout duration, expressed in milliseconds.voidsetIngressPrivate(Boolean ingressPrivate) If true, the service cannot be invoked from the HTTP nor Kafka ingress.voidInputPayloadvoidsetJournalRetention(Long journalRetention) Journal retention duration, expressed in milliseconds.voidsetMetadata(Metadata metadata) Custom metadata of this handler definition.void(Required)voidOutputPayloadvoidsetRetryPolicyExponentiationFactor(Double retryPolicyExponentiationFactor) Retry policy exponentiation factor.voidsetRetryPolicyInitialInterval(Long retryPolicyInitialInterval) Retry policy initial interval, expressed in milliseconds.voidsetRetryPolicyMaxAttempts(Long retryPolicyMaxAttempts) Retry policy max attempts.voidsetRetryPolicyMaxInterval(Long retryPolicyMaxInterval) Retry policy max interval, expressed in milliseconds.voidsetRetryPolicyOnMaxAttempts(Handler.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) RetryPolicyOnMaxAttemptsvoidsetTy(Handler.Ty ty) HandlerTypevoidsetWorkflowCompletionRetention(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
-