ariba.util.core
Class HeapTimerQueue

java.lang.Object
  extended by ariba.util.core.TimerQueue
      extended by ariba.util.core.HeapTimerQueue
All Implemented Interfaces:
java.lang.Runnable

public class HeapTimerQueue
extends TimerQueue

An implementation of a TimerQueue that stores the Timers in a PriorityQueue. If you are creating a TimerQueue that needs to store many timers, this is probably a good choice.


Constructor Summary
HeapTimerQueue()
          Create and start a new HeapTimerQueue
 
Method Summary
 int size()
          Get the number of Timers that are in this queue.
 java.lang.String toString()
           
 
Methods inherited from class ariba.util.core.TimerQueue
run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeapTimerQueue

public HeapTimerQueue()
Create and start a new HeapTimerQueue

Method Detail

size

public int size()
Get the number of Timers that are in this queue. (Repeating timers are counted once).

Specified by:
size in class TimerQueue
Returns:
the current number of pending timers.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.