Annotation Type ReloadIfRequired


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface ReloadIfRequired
An annotation for a ServerSetupTask which indicates the server should be reloaded, if required, when the task completes its ServerSetupTask.setup(ManagementClient, String) or ends in an error. The same will happen for the ServerSetupTask.tearDown(ManagementClient, String).
Author:
James R. Perkins
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The time unit used for the timeout to wait for a reload.
    long
    The time to wait for the reload to happen.
  • Element Details

    • value

      long value
      The time to wait for the reload to happen. The default is 10.
      Returns:
      the default time to wait for a reload
      Default:
      10L
    • timeUnit

      TimeUnit timeUnit
      The time unit used for the timeout to wait for a reload. The default is SECONDS.
      Returns:
      the timeout time unit
      Default:
      SECONDS