Annotation Interface SequenceOptimizer


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface SequenceOptimizer
Meta annotation to use a custom Optimizer for a sequence-based identifier generator.
Since:
3.13.0
Author:
Vlad Mihalcea
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the sequence to use.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Returns the increment sequence value.
    int
    Returns the initial sequence value.
    Returns the optimizer name.
  • Element Details

    • sequenceName

      String sequenceName
      Returns the name of the sequence to use.
      Returns:
      the name of the sequence to use
    • initialValue

      int initialValue
      Returns the initial sequence value.
      Returns:
      initial sequence value
      Default:
      1
    • incrementSize

      int incrementSize
      Returns the increment sequence value.
      Returns:
      increment sequence value.
      Default:
      50
    • optimizer

      String optimizer
      Returns the optimizer name. It can be either the fully-qualified Class name or the short name given by the StandardOptimizerDescriptor
      Returns:
      the optimizer name
      Default:
      ""