Package adams.flow.control
Class StorageQueueHandler.QueueItem
- java.lang.Object
-
- adams.flow.control.StorageQueueHandler.QueueItem
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StorageQueueHandler
public static class StorageQueueHandler.QueueItem extends Object implements Serializable
Container for queueing objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Object
payload
the payload for the queue.long
retrievalAt
the timestamp when the object can be retrieved (walltime in msec).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRetrieve()
Checks whether the item can be retrieved based on its retrieval timestamp.
-
-
-
Field Detail
-
payload
public Object payload
the payload for the queue.
-
retrievalAt
public long retrievalAt
the timestamp when the object can be retrieved (walltime in msec).
-
-
Constructor Detail
-
QueueItem
public QueueItem(Object obj)
Initializes the item with no retrieval timestamp.- Parameters:
obj
- the payload
-
QueueItem
public QueueItem(Object obj, long timestamp)
Initializes the item with the specified retrieval timestamp.- Parameters:
obj
- the payloadtimestamp
- the retrieval timestamp (walltime in msec)
-
-