All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.util.BoundedBlockingQueue.scala Maven / Gradle / Ivy

There is a newer version: 2.2.6.3
Show newest version
/**
 * Copyright (C) 2009-2017 Lightbend Inc. 
 */

package akka.util

import java.util.{ Queue, ArrayDeque }

/**
 * BoundedBlockingQueue wraps any Queue and turns the result into a BlockingQueue with a limited capacity.
 * @param maxCapacity - the maximum capacity of this Queue, needs to be > 0
 * @param backing - the backing Queue
 */
 class BoundedBlockingQueue[E <: AnyRef](
   val maxCapacity: Int, private val backing: Queue[E]) extends ArrayDeque[E](maxCapacity)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy