java.lang.Object
dev.restate.sdk.core.generated.manifest.Handler

@Generated("jsonschema2pojo") public class Handler extends Object
Handler

  • Constructor Details

    • Handler

      public Handler()
  • Method Details

    • getName

      public String getName()
      (Required)
    • setName

      public void setName(String name)
      (Required)
    • withName

      public Handler withName(String name)
    • getDocumentation

      public String getDocumentation()
      Documentation for this handler definition. No format is enforced, but generally Markdown is assumed.
    • setDocumentation

      public void setDocumentation(String documentation)
      Documentation for this handler definition. No format is enforced, but generally Markdown is assumed.
    • withDocumentation

      public Handler withDocumentation(String documentation)
    • getTy

      public Handler.Ty getTy()
      HandlerType

      If unspecified, defaults to EXCLUSIVE for Virtual Object or WORKFLOW for Workflows. This should be unset for Services.

    • setTy

      public void setTy(Handler.Ty ty)
      HandlerType

      If unspecified, defaults to EXCLUSIVE for Virtual Object or WORKFLOW for Workflows. This should be unset for Services.

    • withTy

      public Handler withTy(Handler.Ty ty)
    • getInput

      public Input getInput()
      InputPayload

      Description of an input payload. This will be used by Restate to validate incoming requests.

    • setInput

      public void setInput(Input input)
      InputPayload

      Description of an input payload. This will be used by Restate to validate incoming requests.

    • withInput

      public Handler withInput(Input input)
    • getOutput

      public Output getOutput()
      OutputPayload

      Description of an output payload.

    • setOutput

      public void setOutput(Output output)
      OutputPayload

      Description of an output payload.

    • withOutput

      public Handler withOutput(Output output)
    • getInactivityTimeout

      public Long getInactivityTimeout()
      Inactivity timeout duration, expressed in milliseconds.
    • setInactivityTimeout

      public void setInactivityTimeout(Long inactivityTimeout)
      Inactivity timeout duration, expressed in milliseconds.
    • withInactivityTimeout

      public Handler withInactivityTimeout(Long inactivityTimeout)
    • getAbortTimeout

      public Long getAbortTimeout()
      Abort timeout duration, expressed in milliseconds.
    • setAbortTimeout

      public void setAbortTimeout(Long abortTimeout)
      Abort timeout duration, expressed in milliseconds.
    • withAbortTimeout

      public Handler withAbortTimeout(Long abortTimeout)
    • getJournalRetention

      public Long getJournalRetention()
      Journal retention duration, expressed in milliseconds.
    • setJournalRetention

      public void setJournalRetention(Long journalRetention)
      Journal retention duration, expressed in milliseconds.
    • withJournalRetention

      public Handler withJournalRetention(Long journalRetention)
    • getIdempotencyRetention

      public Long getIdempotencyRetention()
      Idempotency retention duration, expressed in milliseconds. This is NOT VALID when HandlerType == WORKFLOW
    • setIdempotencyRetention

      public void setIdempotencyRetention(Long idempotencyRetention)
      Idempotency retention duration, expressed in milliseconds. This is NOT VALID when HandlerType == WORKFLOW
    • withIdempotencyRetention

      public Handler withIdempotencyRetention(Long idempotencyRetention)
    • getWorkflowCompletionRetention

      public Long getWorkflowCompletionRetention()
      Workflow completion retention duration, expressed in milliseconds. This is valid ONLY when HandlerType == WORKFLOW
    • setWorkflowCompletionRetention

      public void setWorkflowCompletionRetention(Long workflowCompletionRetention)
      Workflow completion retention duration, expressed in milliseconds. This is valid ONLY when HandlerType == WORKFLOW
    • withWorkflowCompletionRetention

      public Handler withWorkflowCompletionRetention(Long workflowCompletionRetention)
    • getEnableLazyState

      public Boolean getEnableLazyState()
      If true, lazy state is enabled.
    • setEnableLazyState

      public void setEnableLazyState(Boolean enableLazyState)
      If true, lazy state is enabled.
    • withEnableLazyState

      public Handler withEnableLazyState(Boolean enableLazyState)
    • getIngressPrivate

      public Boolean getIngressPrivate()
      If true, the service cannot be invoked from the HTTP nor Kafka ingress.
    • setIngressPrivate

      public void setIngressPrivate(Boolean ingressPrivate)
      If true, the service cannot be invoked from the HTTP nor Kafka ingress.
    • withIngressPrivate

      public Handler withIngressPrivate(Boolean ingressPrivate)
    • getMetadata

      public Metadata getMetadata()
      Custom metadata of this handler definition. This metadata is shown on the Admin API when querying the service/handler definition.
    • setMetadata

      public void setMetadata(Metadata metadata)
      Custom metadata of this handler definition. This metadata is shown on the Admin API when querying the service/handler definition.
    • withMetadata

      public Handler withMetadata(Metadata metadata)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object