fibers.remove(fiber.getId());
}
public long[] getAllFiberIds() {
int size = fibers.size();
IteratorLong it = (IteratorLong) fibers.keys();
long[] ids = new long[size];
int i = 0;
while (it.hasNext() && i < size) {
ids[i] = it.nextLong();
i++;
}
if (i < size)
return Arrays.copyOf(ids, i);
else