celeboss.command
Class QueueItem

java.lang.Object
  extended byceleboss.command.QueueItem
All Implemented Interfaces:
java.lang.Comparable

public class QueueItem
extends java.lang.Object
implements java.lang.Comparable

This class describes an item on the queue to be processed.


Method Summary
 int compareTo(java.lang.Object arg0)
          Compare the queue items on a time basis of the next update.
 boolean equals(java.lang.Object other)
          Queue items are equals based on the refresh target.
 java.lang.String getDescription()
          Human readable description of this queue item
 java.util.Date getExecutionTime()
          The time this command is to be executed
 java.lang.Object getParam()
          Get the target of this command.
 Command getTarget()
          Get the target of this command.
 int hashCode()
          Get a hash code
 java.lang.String toString()
          Text representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(java.lang.Object arg0)
Compare the queue items on a time basis of the next update.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
arg0 -
Returns:
Comparision

equals

public boolean equals(java.lang.Object other)
Queue items are equals based on the refresh target. Only one queue item per target

Parameters:
other - Object to compare against
Returns:
Are the items equal

getDescription

public java.lang.String getDescription()
Human readable description of this queue item

Returns:
Description based on Command

getParam

public java.lang.Object getParam()
Get the target of this command.

Returns:
Command object.

getTarget

public Command getTarget()
Get the target of this command.

Returns:
Command object.

getExecutionTime

public java.util.Date getExecutionTime()
The time this command is to be executed

Returns:
Time command is to be executed

hashCode

public int hashCode()
Get a hash code

Returns:
Hash code value based on target
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Text representation

Returns:
Description based on target and execution
See Also:
Object.toString()