kadai

concurrent

package concurrent

Visibility
  1. Public
  2. All

Type Members

  1. final class Atomic[A <: AnyRef] extends AtomicReference[A]

    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(_)
  2. class Backoff extends AnyRef

    Simple backoff implementation, not exponential, grows randomly but linearly

  3. class Gate extends AnyRef

  4. class IntRepeater extends Logging

  5. 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.

  6. class SequenceGenerator extends AnyRef

    Thread-safe monotonic sequence generator

Value Members

  1. object Atomic extends Serializable

  2. object AtomicPool

    Creates a thread-safe mutable Pool wrapper

  3. object Backoff

  4. object Gate

  5. object IntRepeater

  6. object Pool extends Serializable

  7. object ThreadFactories

    Factory for creating ThreadFactory instances.

    Factory for creating ThreadFactory instances. All factory implementations produce named threads to give good stack-traces.

Ungrouped