Package dev.restate.sdk.core.manifest
Class Handler
java.lang.Object
dev.restate.sdk.core.manifest.Handler
Handler
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Documentation for this handler definition.getInput()
InputPayloadCustom metadata of this handler definition.getName()
(Required)OutputPayloadgetTy()
HandlerTypeint
hashCode()
void
setDocumentation
(String documentation) Documentation for this handler definition.void
InputPayloadvoid
setMetadata
(Metadata metadata) Custom metadata of this handler definition.void
(Required)void
OutputPayloadvoid
setTy
(Handler.Ty ty) HandlerTypetoString()
withDocumentation
(String documentation) withMetadata
(Metadata metadata) withOutput
(Output output) withTy
(Handler.Ty ty)
-
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
-
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
-