package concurrent
- Alphabetic
- Public
- All
Type Members
-
final
class
Atomic
[A] extends AnyRef
Extension to
AtomicReference
that allows more idiomatic usage.Extension to
AtomicReference
that allows more idiomatic usage.It adds a value that can be set with an update function:
value = (a: A) => calculate(a) value = calculate(_)
-
class
Backoff
extends AnyRef
Simple backoff implementation, not exponential, grows randomly but linearly
- class Gate extends AnyRef
- class IntRepeater extends AnyRef
-
final
class
Memoize
[E, A] extends AnyRef
Simple memoizer that can fail.
Simple memoizer that can fail.
WARNING it must be used with care. Note in particular that it must not always fail as it tail recurses in that case and will live lock.
-
case class
Pool
[+A](available: List[A] = Nil, busy: List[A] = Nil) extends Product with Serializable
Pool manages two queues of available and busy objects.
Pool manages two queues of available and busy objects.
Immutable, variable reference needs to be managed externally.
-
class
SequenceGenerator
extends AnyRef
Thread-safe monotonic sequence generator
Value Members
- object Atomic
-
object
AtomicPool
Creates a thread-safe mutable Pool wrapper
- object Backoff
- object Gate
- object IntRepeater
- object Memoize
- object Pool extends Serializable
-
object
ThreadFactories
Factory for creating {{ThreadFactory}} instances.
Factory for creating {{ThreadFactory}} instances. All factory implementations produce named threads to give good stack-traces.