| Author |
Regarding ReferenceQueue
|
surya.raaj prakash
Ranch Hand
Joined: Oct 30, 2009
Posts: 76
|
|
Hi Friends,
Use of Reference Queue with soft reference and weak reference is optional,
but each phantom reference you must be associated with ReferenceQueue, WHY?
|
 |
surya.raaj prakash
Ranch Hand
Joined: Oct 30, 2009
Posts: 76
|
|
|
Any Reply/
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16690
|
|
surya.raaj prakash wrote:but each phantom reference you must be associated with ReferenceQueue, WHY?
Okay, let's assume that there was an option to declare a phantom reference without a ReferenceQueue -- how do you propose that it be used?
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: Regarding ReferenceQueue
|
|
|