Liking cljdoc? Tell your friends :D

jdk.lang.ref.ReferenceQueue

Reference queues, to which registered reference objects are appended by the garbage collector after the appropriate reachability changes are detected.

Reference queues, to which registered reference objects are appended by the
garbage collector after the appropriate reachability changes are detected.
raw docstring

->reference-queueclj

(->reference-queue)

Constructor.

Constructs a new reference-object queue.

Constructor.

Constructs a new reference-object queue.
raw docstring

pollclj

(poll this)

Polls this queue to see if a reference object is available. If one is available without further delay then it is removed from the queue and returned. Otherwise this method immediately returns null.

returns: A reference object, if one was immediately available, otherwise null - java.lang.ref.Reference<? extends T>

Polls this queue to see if a reference object is available.  If one is
 available without further delay then it is removed from the queue and
 returned.  Otherwise this method immediately returns null.

returns: A reference object, if one was immediately available,
          otherwise null - `java.lang.ref.Reference<? extends T>`
raw docstring

removeclj

(remove this)
(remove this timeout)

Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires.

This method does not offer real-time guarantees: It schedules the timeout as if by invoking the Object.wait(long) method.

timeout - If positive, block for up to timeout milliseconds while waiting for a reference to be added to this queue. If zero, block indefinitely. - long

returns: A reference object, if one was available within the specified timeout period, otherwise null - java.lang.ref.Reference<? extends T>

throws: java.lang.IllegalArgumentException - If the value of the timeout argument is negative

Removes the next reference object in this queue, blocking until either
 one becomes available or the given timeout period expires.

  This method does not offer real-time guarantees: It schedules the
 timeout as if by invoking the Object.wait(long) method.

timeout - If positive, block for up to timeout milliseconds while waiting for a reference to be added to this queue. If zero, block indefinitely. - `long`

returns: A reference object, if one was available within the specified
          timeout period, otherwise null - `java.lang.ref.Reference<? extends T>`

throws: java.lang.IllegalArgumentException - If the value of the timeout argument is negative
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close