mill.util
Members list
Type members
Classlikes
Manage the setup, teardown, and caching of objects of type V safely in a multithreaded environment.
Manage the setup, teardown, and caching of objects of type V safely in a multithreaded environment.
The user provides the setup and teardown logic along with a maxCacheSize, and CachedFactory provides instances of V as requested using the withValue method. These instances are automatically constructed on-demand from the give key, cached with an LRU strategy, and destroyed when they are eventually evicted
Intended for relatively small caches approximately O(num-threads) in size that will typically get used in a build system, not intended for caching large amounts of entries
Attributes
- Source
- CachedFactory.scala
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Source
- CoursierSupport.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Jvm
Attributes
- Companion
- trait
- Source
- CoursierSupport.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CoursierSupport.type
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Represents a JAR manifest.
Represents a JAR manifest.
Value parameters
- groups
-
additional attributes for named entries
- main
-
the main manifest attributes
Attributes
- Companion
- object
- Source
- JarManifest.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- JarManifest.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JarManifest.type
Attributes
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Generic retry functionality
Generic retry functionality
Value parameters
- backoffMillis
-
What is the initial backoff time
- backoffMultiplier
-
How much to multiply the initial backoff each time
- count
-
How many times to retry before giving up
- filter
-
Whether or not we want to retry a given exception at a given retryCount; defaults to
true
to retry all exceptions, but can be made more fine-grained to only retry specific exceptions, or log them together with the retryCount - t
-
The code block that we want to retry
- timeoutMillis
-
How much time we want to allow t to run. If passed, runs t in a separate thread and throws a
TimeoutException
if it takes too long
Attributes
- Returns
-
the value of evaluating t, or throws an exception if evaluating t fails more than count times
- Source
- Retry.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Source
- Version.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- class
- Source
- Version.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Version.type