Package

akka

util

Permalink

package util

Content Hierarchy
Visibility
  1. Public
  2. All

Type Members

  1. class BoundedBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E]

    Permalink

    BoundedBlockingQueue wraps any Queue and turns the result into a BlockingQueue with a limited capacity.

  2. abstract class ByteIterator extends BufferedIterator[Byte]

    Permalink

    An iterator over a ByteString.

  3. sealed abstract class ByteString extends IndexedSeq[Byte] with IndexedSeqOptimized[Byte, ByteString]

    Permalink

    A rope-like immutable data structure containing bytes.

    A rope-like immutable data structure containing bytes. The goal of this structure is to reduce copying of arrays when concatenating and slicing sequences of bytes, and also providing a thread safe way of working with bytes.

    TODO: Add performance characteristics

  4. final class ByteStringBuilder extends Builder[Byte, ByteString]

    Permalink

    A mutable builder for efficiently creating a akka.util.ByteString.

    A mutable builder for efficiently creating a akka.util.ByteString.

    The created ByteString is not automatically compacted.

  5. class ClassLoaderObjectInputStream extends ObjectInputStream

    Permalink

    ClassLoaderObjectInputStream tries to utilize the provided ClassLoader to load Classes and falls back to ObjectInputStreams resolver.

  6. sealed abstract class CompactByteString extends ByteString with Serializable

    Permalink

    A compact ByteString.

    A compact ByteString.

    The ByteString is guarantied to be contiguous in memory and to use only as much memory as required for its contents.

  7. class ConcurrentMultiMap[K, V] extends Index[K, V]

    Permalink

    An implementation of a ConcurrentMultiMap Adds/remove is serialized over the specified key Reads are fully concurrent <-- el-cheapo

  8. class Index[K, V] extends AnyRef

    Permalink

    An implementation of a ConcurrentMultiMap Adds/remove is serialized over the specified key Reads are fully concurrent <-- el-cheapo

  9. final class MessageBuffer extends AnyRef

    Permalink

    A non thread safe mutable message buffer that can be used to buffer messages inside actors.

  10. final class MessageBufferMap[I] extends AnyRef

    Permalink

    A non thread safe mutable message buffer map that can be used to buffer messages inside actors.

    A non thread safe mutable message buffer map that can be used to buffer messages inside actors.

    I

    (Id type)

  11. final class NanoTimeTokenBucket extends TokenBucket

    Permalink

    Default implementation of TokenBucket that uses System.nanoTime as the time source.

  12. trait PriorityQueueStabilizer[E <: AnyRef] extends AbstractQueue[E]

    Permalink

    PriorityQueueStabilizer wraps a priority queue so that it respects FIFO for elements of equal priority.

  13. final class ReentrantGuard extends ReentrantLock

    Permalink
  14. class StablePriorityBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with PriorityQueueStabilizer[E]

    Permalink

    StablePriorityBlockingQueue is a blocking priority queue that preserves order for elements of equal priority.

  15. class StablePriorityQueue[E <: AnyRef] extends AbstractQueue[E] with PriorityQueueStabilizer[E]

    Permalink

    StablePriorityQueue is a priority queue that preserves order for elements of equal priority.

  16. trait Subclassification[K] extends AnyRef

    Permalink

    Typeclass which describes a classification hierarchy.

    Typeclass which describes a classification hierarchy. Observe the contract between isEqual and isSubclass!

  17. class Switch extends AnyRef

    Permalink

    An atomic switch that can be either on or off

  18. case class Timeout(duration: FiniteDuration) extends Product with Serializable

    Permalink
    Annotations
    @SerialVersionUID()
  19. class TypedMultiMap[T <: AnyRef, K[_ <: T]] extends AnyRef

    Permalink

    An immutable multi-map that expresses the value type as a type function of the key type.

    An immutable multi-map that expresses the value type as a type function of the key type. Create it with a type constructor that expresses the relationship:

    trait Key { type Type = T }
    case class MyValue[T](...)
    
    // type function from Key to MyValue
    type KV[K <: Key] = MyValue[K#Type]
    
    val map = TypedMultiMap.empty[Key, KV]
    
    // a plain Int => String map would use this function:
    type plain[K <: Int] = String
    
    // a map T => T would use this function:
    type identity[T <: AnyRef] = T

    Caveat: using keys which take type parameters does not work due to conflicts with the existential interpretation of Key[_]. A workaround is to define a key type like above and provide a subtype that provides its type parameter as type member Type.

  20. final class Unsafe extends AnyRef

    Permalink

Value Members

  1. object BoxedType

    Permalink
  2. object ByteIterator

    Permalink
  3. object ByteString

    Permalink
  4. object CompactByteString extends Serializable

    Permalink
  5. object HashCode

    Permalink

    Set of methods which allow easy implementation of hashCode.

    Set of methods which allow easy implementation of hashCode.

    Example:

     override def hashCode: Int = {
       var result = HashCode.SEED
       //collect the contributions of various fields
       result = HashCode.hash(result, fPrimitive)
       result = HashCode.hash(result, fObject)
       result = HashCode.hash(result, fArray)
       result
     }
    

  6. object Helpers

    Permalink
  7. object LineNumbers

    Permalink

    This is a minimized byte-code parser that concentrates exclusively on line numbers and source file extraction.

    This is a minimized byte-code parser that concentrates exclusively on line numbers and source file extraction. It works for all normal classes up to format 52:0 (JDK8), and it also works for Lambdas that are Serializable. The latter restriction is due to the fact that the proxy object generated by LambdaMetafactory otherwise contains no information about which method backs this particular lambda (and there might be multiple defined within a single class).

  8. object MessageBuffer

    Permalink
  9. object PriorityQueueStabilizer

    Permalink
  10. object Timeout extends Serializable

    Permalink

    A Timeout is a wrapper on top of Duration to be more specific about what the duration means.

  11. object TypedMultiMap

    Permalink

Ungrouped