scala.ref

class ReferenceQueue

[source: scala/ref/ReferenceQueue.scala]

class ReferenceQueue[+T <: AnyRef]
extends AnyRef
Author
Sean McDirmid, Philipp Haller
Value Summary
protected val wrappers : HashMap[java.lang.ref.Reference[Any], ReferenceWrapper[AnyRef]]
Method Summary
protected def Wrapper (jref : java.lang.ref.Reference[Any]) : Option[Reference[T]]
def poll : Option[Reference[T]]
def register (ref : ReferenceWrapper[AnyRef]) : Unit
def remove : Option[Reference[T]]
def remove (timeout : Long) : Option[Reference[T]]
override def toString : java.lang.String
Returns a string representation of the object.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
protected val wrappers : HashMap[java.lang.ref.Reference[Any], ReferenceWrapper[AnyRef]]

Method Details
override def toString : java.lang.String
Returns a string representation of the object.

The default representation is platform dependent.

Returns
a string representation of the object.


protected def Wrapper(jref : java.lang.ref.Reference[Any]) : Option[Reference[T]]

def poll : Option[Reference[T]]

def remove : Option[Reference[T]]

def remove(timeout : Long) : Option[Reference[T]]

def register(ref : ReferenceWrapper[AnyRef]) : Unit