Annotation Interface NessiePersist


@Target({FIELD,PARAMETER}) @Retention(RUNTIME) @Inherited public @interface NessiePersist
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional: name of method to update the configuration for the Persist.
    boolean
    Whether to initialize the adapter, defaults to true.
  • Element Details

    • configMethod

      String configMethod
      Optional: name of method to update the configuration for the Persist.

      The method must be

      • static
      • not private
      • have a single parameter StoreConfig.Adjustable
      • return StoreConfig.Adjustable

      Example:

      
         @NessiePersist(configMethod = "applyTestClock")
         protected static Persist persist;
      
         static StoreConfig.Adjustable applyTestClock(StoreConfig.Adjustable config) {
           return ...
         }
       
      Default:
      ""
    • initializeRepo

      boolean initializeRepo
      Whether to initialize the adapter, defaults to true.
      Default:
      true