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