akka.dispatch.AbstractNodeQueue.scala Maven / Gradle / Ivy
package akka.dispatch
import scala.collection.mutable.Queue
class AbstractNodeQueue[A >: Null] extends Queue[A] {
def add(value: A) = super.enqueue(value)
def poll(): A = if(isEmpty) null else super.dequeue()
def count() = size
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy