Package kalix.javasdk.annotations
Annotation Interface Trigger.OnStartup
- Enclosing class:
- Trigger
The on startup hook is called every time a service instance boots up.
This can happen for very different reasons: restarting / redeploying the service,
scaling up to more instances or even without any user-driven action
(e.g. Kalix Runtime versions being rolled out, infrastructure-related incidents, etc.).
Therefore, one should carefully consider how to use this hook and its implementation.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
The maximum number of retries we will do upon failure of the method hook calls.
-
Element Details
-
maxRetries
int maxRetriesThe maximum number of retries we will do upon failure of the method hook calls. The default value 0 means no retries are done.- Default:
- 0
-