sunlabs.brazil.template
Class QueueTemplate.QueueItem

java.lang.Object
  extended by sunlabs.brazil.template.QueueTemplate.QueueItem
Enclosing class:
QueueTemplate

public static class QueueTemplate.QueueItem
extends java.lang.Object

A bag of items to keep on the Q. We could add other stuff later.


Field Summary
 java.util.Dictionary data
           
 java.lang.String from
           
 java.lang.String message
           
 java.lang.String meta
           
 long timestamp
           
 
Constructor Summary
QueueTemplate.QueueItem(java.lang.String from, java.util.Dictionary data)
           
QueueTemplate.QueueItem(java.lang.String from, java.lang.String message, java.lang.String meta)
          Deprecated. Use the other constructor instead
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public long timestamp

from

public java.lang.String from

data

public java.util.Dictionary data

message

public java.lang.String message

meta

public java.lang.String meta
Constructor Detail

QueueTemplate.QueueItem

public QueueTemplate.QueueItem(java.lang.String from,
                               java.util.Dictionary data)

QueueTemplate.QueueItem

public QueueTemplate.QueueItem(java.lang.String from,
                               java.lang.String message,
                               java.lang.String meta)
Deprecated. Use the other constructor instead

Add an item to the Q. "meta" is application specific "meta" data associated with this Q item.

Method Detail

toString

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