final class ConfigBuilder[A, B] extends ConfigLike[A, B]
A configuration builder is a mutable version of Config and will be implicitly converted to the latter
when passed into Producer.apply.
- Alphabetic
- By Inheritance
- ConfigBuilder
- ConfigLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var accept: (A, B) => Boolean
Acceptor function.
Acceptor function. Given an initially found value, this function should return
trueif the value is still valid, orfalseif it is invalid and should be recomputed. This function is used only once during the initial directory scan of the producer after it is created.The default function always returns
true, i.e. assumes that values never become invalid.- Definition Classes
- ConfigBuilder → ConfigLike
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build: Config[A, B]
- var capacity: Limit
The maximum capacity of the cache.
The maximum capacity of the cache.
The default value is
Limit(-1, -1)(unlimited capacity).- Definition Classes
- ConfigBuilder → ConfigLike
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var evict: (A, B) => Unit
A function which is being called when an entry is evicted from cache.
A function which is being called when an entry is evicted from cache. The function must ensure that any associated resources are disposed of.
The default function is a no-op.
- Definition Classes
- ConfigBuilder → ConfigLike
- var executionContext: ExecutionContext
The context used by the cache to spawn future computations.
The context used by the cache to spawn future computations.
The default value is
ExecutionContext.global.- Definition Classes
- ConfigBuilder → ConfigLike
- def extension: String
The file name extension to use, excluding leading period.
The file name extension to use, excluding leading period. It must only consist of letters and digits.
The default value is
"cache".- Definition Classes
- ConfigBuilder → ConfigLike
- def extension_=(value: String): Unit
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def folder: File
The directory where the cached values are stored.
The directory where the cached values are stored. If this directory does not exist upon cache creation, it will be created on the fly.
By default this will lazily create a temporary directory deleted on application exit. If this value is set via
folder_=, that setting replaces the default behavior.- Definition Classes
- ConfigBuilder → ConfigLike
- def folder_=(value: File): Unit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var space: (A, B) => Long
Associate resources space function.
Associate resources space function. Given a value, this function should compute the size in bytes of any additional resources used by this entry.
The default function always returns zero, i.e. assumes that there are no additional resources associated with a value.
- Definition Classes
- ConfigBuilder → ConfigLike
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ConfigBuilder → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()