@Override public short getPollingPriorityProgress() { return parent.getPriorityClass(); }
@Override public short getPriorityClass() { return parent.getPriorityClass(); }
@Override public short getPollingPriorityNormal() { return parent.getPriorityClass(); }
public short getPriorityClass() { return this.parent.getPriorityClass(); }
@Override public short getPriority() { if(backgroundPoll) { synchronized(this) { if(forever) { if(!everInCooldown) { // Boost the priority initially, so that finding the first edition takes precedence over ongoing polling after we're fairly sure we're not going to find anything. // The ongoing polling keeps the ULPRs up to date so that we will get told quickly, but if we are overloaded we won't be able to keep up regardless. return progressPollPriority; } else { return normalPollPriority; } } else { // If !forever, this is a random-probe. // It's not that important. return normalPollPriority; } } } return parent.getPriorityClass(); }
@Override public KeyListener makeKeyListener(ClientContext context, boolean onStartup) { synchronized(this) { if(finished) return null; if(cancelled) return null; } if(key == null) { Logger.error(this, "Key is null - left over BSSF? on "+this+" in makeKeyListener()", new Exception("error")); return null; } Key newKey = key.getNodeKey(true); if(parent == null) { Logger.error(this, "Parent is null on "+this+" persistent="+persistent+" key="+key+" ctx="+ctx); return null; } short prio = parent.getPriorityClass(); KeyListener ret = new SingleKeyListener(newKey, this, prio, persistent); return ret; }
sb.append(TimeUtil.formatTime(diff, 2)); row.addChild("td", sb.toString()); row.addChild("td", Short.toString(request.getPriorityClass())); row.addChild("td", client==null ? "?" : Boolean.toString(client.realTimeFlag()));
public void reregisterAll(ClientRequester request, RequestScheduler lock, ClientContext context, short oldPrio) { RequestClient client = request.getClient(); short newPrio = request.getPriorityClass(); if(newPrio == oldPrio) { Logger.error(this, "Changing priority from "+oldPrio+" to "+newPrio+" for "+request);