Package dev.restate.admin.model
Class ServiceMetadata
java.lang.Object
dev.restate.admin.model.ServiceMetadata
ServiceMetadata
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortTimeout
(String abortTimeout) addHandlersItem
(HandlerMetadata handlersItem) deploymentId
(String deploymentId) documentation
(String documentation) boolean
Return true if this ServiceMetadata object is equal to o.This timer guards against stalled service/handler invocations that are supposed to terminate.Deployment exposing the latest revision of the service.Documentation of the service, as propagated by the SDKs.Get handlersThe retention duration of idempotent requests for this service.This timer guards against stalled service/handler invocations.Additional service metadata, as propagated by the SDKs.getName()
Fully qualified name of the serviceIf true, the service can be invoked through the ingress.Latest revision of the service.getTy()
Get tyThe retention duration of workflows.handlers
(List<HandlerMetadata> handlers) int
hashCode()
idempotencyRetention
(String idempotencyRetention) inactivityTimeout
(String inactivityTimeout) putMetadataItem
(String key, String metadataItem) void
setAbortTimeout
(String abortTimeout) void
setDeploymentId
(String deploymentId) void
setDocumentation
(String documentation) void
setHandlers
(List<HandlerMetadata> handlers) void
setIdempotencyRetention
(String idempotencyRetention) void
setInactivityTimeout
(String inactivityTimeout) void
setMetadata
(Map<String, String> metadata) void
void
void
setRevision
(Integer revision) void
setTy
(ServiceType ty) void
setWorkflowCompletionRetention
(String workflowCompletionRetention) toString()
Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.ty
(ServiceType ty) workflowCompletionRetention
(String workflowCompletionRetention)
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_HANDLERS
- See Also:
-
JSON_PROPERTY_TY
- See Also:
-
JSON_PROPERTY_DOCUMENTATION
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_DEPLOYMENT_ID
- See Also:
-
JSON_PROPERTY_REVISION
- See Also:
-
JSON_PROPERTY_PUBLIC
- See Also:
-
JSON_PROPERTY_IDEMPOTENCY_RETENTION
- See Also:
-
JSON_PROPERTY_WORKFLOW_COMPLETION_RETENTION
- See Also:
-
JSON_PROPERTY_INACTIVITY_TIMEOUT
- See Also:
-
JSON_PROPERTY_ABORT_TIMEOUT
- See Also:
-
-
Constructor Details
-
ServiceMetadata
public ServiceMetadata()
-
-
Method Details
-
name
-
getName
Fully qualified name of the service- Returns:
- name
-
setName
-
handlers
-
addHandlersItem
-
getHandlers
Get handlers- Returns:
- handlers
-
setHandlers
-
ty
-
getTy
Get ty- Returns:
- ty
-
setTy
-
documentation
-
getDocumentation
Documentation of the service, as propagated by the SDKs.- Returns:
- documentation
-
setDocumentation
-
metadata
-
putMetadataItem
-
getMetadata
Additional service metadata, as propagated by the SDKs.- Returns:
- metadata
-
setMetadata
-
deploymentId
-
getDeploymentId
Deployment exposing the latest revision of the service.- Returns:
- deploymentId
-
setDeploymentId
-
revision
-
getRevision
Latest revision of the service. minimum: 0- Returns:
- revision
-
setRevision
-
_public
-
getPublic
If true, the service can be invoked through the ingress. If false, the service can be invoked only from another Restate service.- Returns:
- _public
-
setPublic
-
idempotencyRetention
-
getIdempotencyRetention
The retention duration of idempotent requests for this service.- Returns:
- idempotencyRetention
-
setIdempotencyRetention
-
workflowCompletionRetention
-
getWorkflowCompletionRetention
The retention duration of workflows. Only available on workflow services.- Returns:
- workflowCompletionRetention
-
setWorkflowCompletionRetention
-
inactivityTimeout
-
getInactivityTimeout
This timer guards against stalled service/handler invocations. Once it expires, Restate triggers a graceful termination by asking the service invocation to suspend (which preserves intermediate progress). The 'abort timeout' is used to abort the invocation, in case it doesn't react to the request to suspend. Can be configured using the [`humantime`](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html) format. This overrides the default inactivity timeout set in invoker options.- Returns:
- inactivityTimeout
-
setInactivityTimeout
-
abortTimeout
-
getAbortTimeout
This timer guards against stalled service/handler invocations that are supposed to terminate. The abort timeout is started after the 'inactivity timeout' has expired and the service/handler invocation has been asked to gracefully terminate. Once the timer expires, it will abort the service/handler invocation. This timer potentially **interrupts** user code. If the user code needs longer to gracefully terminate, then this value needs to be set accordingly. Can be configured using the [`humantime`](https://docs.rs/humantime/latest/humantime/fn.parse_duration.html) format. This overrides the default abort timeout set in invoker options.- Returns:
- abortTimeout
-
setAbortTimeout
-
equals
Return true if this ServiceMetadata object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-