/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
/** * @return the first (i.e. earliest to time out) element of the colleciton or null if empty */ public synchronized ReaperElement getFirst() { flushPending(); // we need to order the elements before we can tell which is first. if(elementsOrderedByTimeout.isEmpty()) { return null; } else { return elementsOrderedByTimeout.get(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }
public synchronized void setAllTimeoutsToZero() { flushPending(); for(ReaperElement reaperElement : elementsOrderedByTimeout) { reaperElement.setAbsoluteTimeout(0); } }