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