Interface LookupCacheConfiguration

All Known Implementing Classes:
CaffeineLookupCache.Config, FallbackCacheConfig, NullCache.Config

public interface LookupCacheConfiguration
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Optional<com.google.common.collect.Multimap<String,String>>
    Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options.
  • Field Details

  • Method Details

    • type

      String type()
    • validate

      default Optional<com.google.common.collect.Multimap<String,String>> validate()

      Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options. Prefer validation annotations for simple per-property validations rules, such as min/max values, non-empty strings etc.

      By default the configuration has no extra validation errors (i.e. the result of this method is Optional.empty().

      Returning failing validations here does not prevent saving the configuration!

      Returns:
      optionally map of property name to error messages