final class StateCache extends AnyRef
Cache that holds the state associated to each loaded build.
- Alphabetic
- By Inheritance
- StateCache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StateCache(cache: ConcurrentHashMap[AbsolutePath, CachedState])
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getStateFor(path: AbsolutePath, client: ClientInfo, pool: ClientPool, commonOptions: CommonOptions, logger: Logger): Option[State]
Gets a cached state for the following parameters.
Gets a cached state for the following parameters.
- path
The config path where the build is defined.
- client
The client-specific information of the call-site.
- pool
The session-specific pool.
- commonOptions
The session-specific common options.
- logger
The logger instance.
- returns
The cached
State
, if any.
- def getUpdatedStateFrom(state: State): Option[State]
Gets an updated state (if any) associated to the build of the given state, while keeping all the session-specific information in it.
Gets an updated state (if any) associated to the build of the given state, while keeping all the session-specific information in it.
- state
The state that we want to find a newer replacement for.
- returns
The newest state associated with the build of
state
.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadState(from: AbsolutePath, client: ClientInfo, pool: ClientPool, commonOptions: CommonOptions, logger: Logger, createState: (Build) => State, clientSettings: Option[WorkspaceSettings]): Task[State]
Returns the state associated to
from
, or the result ofcomputeBuild
otherwise.Returns the state associated to
from
, or the result ofcomputeBuild
otherwise. If the state was absent, the cache is updated.- from
Where the build is loaded from.
- returns
The state associated with
from
, or the newly computed state.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateBuild(state: State): State
Updates the cache with
state
.Updates the cache with
state
.- state
The state to put in the cache.
- returns
The updated
State
.
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)