@Override public void onFetchable(ClientPutState state) { synchronized(this) { ListUtils.removeBySwapLast(this.waitingForFetchable,state); if(!started) return; if(!waitingForFetchable.isEmpty()) return; if(calledFetchable) { if(logMINOR) Logger.minor(this, "Trying to call onFetchable() twice"); return; } calledFetchable = true; } cb.onFetchable(this); }
cb.onFetchable(this);