Annotation Interface Trigger.OnStartup

Enclosing class:
Trigger

@Target(METHOD) @Retention(RUNTIME) @Documented public static @interface Trigger.OnStartup
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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The maximum number of retries we will do upon failure of the method hook calls.
  • Element Details

    • maxRetries

      int maxRetries
      The 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