/** * return the outstanding requests * in the queue, which havent been * processed yet */ public long getOutstandingRequests() { return getInProcess(); }
/** * return the outstanding requests * in the queue, which havent been * processed yet */ public long getOutstandingRequests() { return getInProcess(); }
public boolean shouldThrottle(long outStandingCount) { if (getGlobalOutstandingLimit() < getInProcess()) { return outStandingCount > 0; } return false; }
public boolean shouldThrottle(long outStandingCount) { if (getGlobalOutstandingLimit() < getInProcess()) { return outStandingCount > 0; } return false; }
protected void incrOutstandingRequests(RequestHeader h) { if (h.getXid() >= 0) { synchronized (this) { outstandingRequests++; } synchronized (this.factory) { // check throttling if (zkServer.getInProcess() > outstandingLimit) { if (LOG.isDebugEnabled()) { LOG.debug("Throttling recv " + zkServer.getInProcess()); } disableRecv(); // following lines should not be needed since we are // already reading // } else { // enableRecv(); } } } }
if (zkServer.getInProcess() < outstandingLimit || outstandingRequests < 1) { sk.selector().wakeup();
/** * return the outstanding requests * in the queue, which havent been * processed yet */ public long getOutstandingRequests() { return getInProcess(); }
if (zk.getInProcess() < factory.outstandingLimit || outstandingRequests < 1) { sk.selector().wakeup();
if (zk.getInProcess() > factory.outstandingLimit) { if (LOG.isDebugEnabled()) { LOG.debug("Throttling recv " + zk.getInProcess());