Class CacheOptions


  • public class CacheOptions
    extends Object
    Cache options.
    • Constructor Detail

      • CacheOptions

        public CacheOptions()
      • CacheOptions

        public CacheOptions​(JsonObject json)
    • Method Detail

      • getMaxSize

        public int getMaxSize()
        Returns:
        the max number of entries the cache can hold
      • setMaxSize

        public CacheOptions setMaxSize​(int maxSize)
        Set the max number of entries the cache can hold.
        Parameters:
        maxSize - the max size
        Returns:
        a reference to this, so the API can be used fluently
      • newCache

        public <K,​V> Cache<K,​V> newCache()