V
- The value typepublic final class VersionedRecord<V> extends Object
VersionedKeyValueStore.get(Object, long)
and related methods.Constructor and Description |
---|
VersionedRecord(V value,
long timestamp)
Create a new
VersionedRecord instance. |
VersionedRecord(V value,
long timestamp,
long validTo)
Create a new
VersionedRecord instance. |
public VersionedRecord(V value, long timestamp)
value
- The valuetimestamp
- The type of the result returned by this query.public VersionedRecord(V value, long timestamp, long validTo)
value
- The valuetimestamp
- The timestampvalidTo
- The exclusive upper bound of the validity intervalpublic V value()
public long timestamp()