Loops continuously, pulling references off the queue and cleaning them up.
()
| 113 | */ |
| 114 | |
| 115 | @SuppressWarnings("InfiniteLoopStatement") |
| 116 | @Override |
| 117 | public void run() { |
| 118 | while (true) { |
| 119 | try { |
| 120 | if (!cleanUp(queue.remove())) { |
| 121 | break; |
| 122 | } |
| 123 | } catch (InterruptedException e) { |
| 124 | // ignore |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Cleans up a single reference. Catches and logs all throwables. |