Class Service
java.lang.Object
dev.restate.sdk.core.generated.manifest.Service
Service
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
RetryPolicyOnMaxAttemptsstatic enum
ServiceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Abort timeout duration, expressed in milliseconds.Documentation for this service definition.If true, lazy state is enabled.(Required)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.Journal retention duration, expressed in milliseconds.Custom metadata of this service definition.getName()
(Required)Retry policy exponentiation factor.Retry policy initial interval, expressed in milliseconds.Retry policy max attempts.Retry policy max interval, expressed in milliseconds.RetryPolicyOnMaxAttemptsgetTy()
ServiceTypeint
hashCode()
void
setAbortTimeout
(Long abortTimeout) Abort timeout duration, expressed in milliseconds.void
setDocumentation
(String documentation) Documentation for this service definition.void
setEnableLazyState
(Boolean enableLazyState) If true, lazy state is enabled.void
setHandlers
(List<Handler> handlers) (Required)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
setJournalRetention
(Long journalRetention) Journal retention duration, expressed in milliseconds.void
setMetadata
(Metadata__1 metadata) Custom metadata of this service definition.void
(Required)void
setRetryPolicyExponentiationFactor
(Double retryPolicyExponentiationFactor) Retry policy exponentiation factor.void
setRetryPolicyInitialInterval
(Long retryPolicyInitialInterval) Retry policy initial interval, expressed in milliseconds.void
setRetryPolicyMaxAttempts
(Long retryPolicyMaxAttempts) Retry policy max attempts.void
setRetryPolicyMaxInterval
(Long retryPolicyMaxInterval) Retry policy max interval, expressed in milliseconds.void
setRetryPolicyOnMaxAttempts
(Service.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) RetryPolicyOnMaxAttemptsvoid
setTy
(Service.Ty ty) ServiceTypetoString()
withAbortTimeout
(Long abortTimeout) withDocumentation
(String documentation) withEnableLazyState
(Boolean enableLazyState) withHandlers
(List<Handler> handlers) withIdempotencyRetention
(Long idempotencyRetention) withInactivityTimeout
(Long inactivityTimeout) withIngressPrivate
(Boolean ingressPrivate) withJournalRetention
(Long journalRetention) withMetadata
(Metadata__1 metadata) withRetryPolicyExponentiationFactor
(Double retryPolicyExponentiationFactor) withRetryPolicyInitialInterval
(Long retryPolicyInitialInterval) withRetryPolicyMaxAttempts
(Long retryPolicyMaxAttempts) withRetryPolicyMaxInterval
(Long retryPolicyMaxInterval) withRetryPolicyOnMaxAttempts
(Service.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) withTy
(Service.Ty ty)
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
getName
(Required) -
setName
(Required) -
withName
-
getDocumentation
Documentation for this service definition. No format is enforced, but generally Markdown is assumed. -
setDocumentation
Documentation for this service definition. No format is enforced, but generally Markdown is assumed. -
withDocumentation
-
getTy
ServiceType(Required)
-
setTy
ServiceType(Required)
-
withTy
-
getHandlers
(Required) -
setHandlers
(Required) -
withHandlers
-
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. When ServiceType == WORKFLOW, this option will be applied only to the shared handlers. See workflowCompletionRetention for more details. -
setIdempotencyRetention
Idempotency retention duration, expressed in milliseconds. When ServiceType == WORKFLOW, this option will be applied only to the shared handlers. See workflowCompletionRetention for more details. -
withIdempotencyRetention
-
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 Service withRetryPolicyOnMaxAttempts(Service.RetryPolicyOnMaxAttempts retryPolicyOnMaxAttempts) -
getMetadata
Custom metadata of this service definition. This metadata is shown on the Admin API when querying the service definition. -
setMetadata
Custom metadata of this service definition. This metadata is shown on the Admin API when querying the service definition. -
withMetadata
-
toString
-
hashCode
public int hashCode() -
equals
-