(int index)
| 134 | |
| 135 | |
| 136 | protected void removeIndex(int index) { |
| 137 | synchronized (clientsLock) { |
| 138 | clientCount--; |
| 139 | // shift down the remaining clients |
| 140 | for (int i = index; i < clientCount; i++) { |
| 141 | clients[i] = clients[i + 1]; |
| 142 | } |
| 143 | // mark last empty var for garbage collection |
| 144 | clients[clientCount] = null; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | |
| 149 | protected void disconnectAll() { |
no outgoing calls
no test coverage detected