Class Handler
java.lang.Object
dev.restate.sdk.core.generated.manifest.Handler
Handler
-
Nested Class Summary
Nested Classes -
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)OutputPayloadgetTy()
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
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) 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
-
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
-