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

akka.dispatch.AbstractNodeQueue.scala Maven / Gradle / Ivy

The newest version!
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