Package com.hazelcast.jet.datamodel
Class TimestampedItem<T>
java.lang.Object
com.hazelcast.jet.datamodel.TimestampedItem<T>
- Type Parameters:
T
-
public class TimestampedItem<T> extends Object
Mutable wrapper around an item that adds a timestamp. Useful for LRU
caching.
-
Constructor Summary
Constructors Constructor Description TimestampedItem(long timestamp, T item)
Creates a new timestamped item. -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
T
item()
Returns the item.TimestampedItem<T>
setItem(T item)
Sets the item.TimestampedItem<T>
setTimestamp(long timestamp)
Sets the timestamp.long
timestamp()
Returns the timestamp.String
toString()
-
Constructor Details
-
TimestampedItem
Creates a new timestamped item.
-
-
Method Details