Class CachingStrategy.Builder

java.lang.Object
co.crystaldev.alpinecore.framework.storage.CachingStrategy.Builder
Enclosing class:
CachingStrategy

public static final class CachingStrategy.Builder extends Object
Used to construct a new CachingStrategy.
See Also:
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maximumSize

      @Contract("_ -> this") public CachingStrategy.Builder maximumSize(long maximumSize)
      See Also:
      • CacheBuilder.maximumSize(long)
    • expireTime

      @Contract("_, _ -> this") public CachingStrategy.Builder expireTime(long expireTimeValue, TimeUnit expireTimeUnit)
      See Also:
      • CacheBuilder.expireAfterAccess(long, TimeUnit)
    • expireTimeValue

      @Contract("_ -> this") public CachingStrategy.Builder expireTimeValue(long expireTimeValue)
      See Also:
      • CacheBuilder.expireAfterAccess(long, TimeUnit)
    • expireTimeUnit

      @Contract("null -> fail; _ -> this") public CachingStrategy.Builder expireTimeUnit(TimeUnit expireTimeUnit)
      See Also:
      • CacheBuilder.expireAfterAccess(long, TimeUnit)
    • concurrencyLevel

      @Contract("_ -> this") public CachingStrategy.Builder concurrencyLevel(int concurrencyLevel)
      See Also:
      • CacheBuilder.concurrencyLevel(int)
    • build

      @NotNull public @NotNull CachingStrategy build()
      Returns:
      The newly constructed CachingStrategy