com.tivoli.twg.libs
Interface QueueElement


public interface QueueElement

This interface should be implemented by those classes that need to have instances executed when removed from a process queue. Current supported queues are the "timer" queue and the "batch" queue. See QueueTimer and QueueBatch respectively.

See Also:
QueueTimer, QueueBatch

Field Summary
static int QTYPE_BATCH
          when passed to the process method for a subclass of the QueueElement class, this value indicates that the element being processed is a QueueBatch queue
static int QTYPE_TIMER
          when passed to the process method for a subclass of the QueueElement class, this value indicates that the element being processed is a QueueTimer queue
 
Method Summary
 void process(int qType)
          Method called when this element is removed from a queue or its timer expires.
 

Field Detail

QTYPE_TIMER

public static final int QTYPE_TIMER
when passed to the process method for a subclass of the QueueElement class, this value indicates that the element being processed is a QueueTimer queue

See Also:
Constant Field Values

QTYPE_BATCH

public static final int QTYPE_BATCH
when passed to the process method for a subclass of the QueueElement class, this value indicates that the element being processed is a QueueBatch queue

See Also:
Constant Field Values
Method Detail

process

public void process(int qType)
Method called when this element is removed from a queue or its timer expires. If this method is being called because the element's timer has expired, the element remains on the queue.