@Override protected void postRemove(Object o) { if (o != null && (o instanceof Sizeable)) { int mem = ((Sizeable)o).getSize(); this.memSize -= mem; ((ThrottledMemQueueStatHelper)this.stats).removeMem(mem); } }
((ThrottledMemQueueStatHelper)this.stats).throttleTime(endTime-startTime); startTime = endTime; ((ThrottledMemQueueStatHelper)this.stats).incThrottleCount(); ((ThrottledMemQueueStatHelper)this.stats).addMem(mem); this.memSize += mem;
this.stats.getSerialQueueHelper().incThrottleCount(); } while (stats.getSerialQueueBytes() >= TOTAL_SERIAL_QUEUE_BYTE_LIMIT);
((ThrottledMemQueueStatHelper)this.stats).throttleTime(endTime-startTime); startTime = endTime; ((ThrottledMemQueueStatHelper)this.stats).incThrottleCount(); ((ThrottledMemQueueStatHelper)this.stats).addMem(mem); this.memSize += mem;
this.stats.getSerialQueueHelper().incThrottleCount(); } while (stats.getSerialQueueBytes() >= TOTAL_SERIAL_QUEUE_BYTE_LIMIT);
@Override protected void postRemove(Object o) { if (o != null && (o instanceof Sizeable)) { int mem = ((Sizeable)o).getSize(); this.memSize -= mem; ((ThrottledMemQueueStatHelper)this.stats).removeMem(mem); } }