Atomically returns and nulls out the current list of Deferreds waiting for the -ROOT- region.
()
| 4196 | * Deferreds waiting for the -ROOT- region. |
| 4197 | */ |
| 4198 | private ArrayList<Deferred<Object>> atomicGetAndRemoveWaiters() { |
| 4199 | synchronized (this) { |
| 4200 | try { |
| 4201 | return deferred_rootregion; |
| 4202 | } finally { |
| 4203 | deferred_rootregion = null; |
| 4204 | } |
| 4205 | } |
| 4206 | } |
| 4207 | |
| 4208 | /** |
| 4209 | * Processes a ZooKeeper event. |