Class VersionedRecord<V>
java.lang.Object
org.apache.kafka.streams.state.VersionedRecord<V>
- Type Parameters:
V- The value type
Combines a value (from a key-value record) with a timestamp, for use as the return type
from
VersionedKeyValueStore.get(Object, long) and related methods.-
Constructor Summary
ConstructorsConstructorDescriptionVersionedRecord(V value, long timestamp) Create a newVersionedRecordinstance.VersionedRecord(V value, long timestamp, long validTo) Create a newVersionedRecordinstance. -
Method Summary
-
Constructor Details
-
VersionedRecord
- Parameters:
value- The valuetimestamp- The type of the result returned by this query.
-
VersionedRecord
- Parameters:
value- The valuetimestamp- The timestampvalidTo- The exclusive upper bound of the validity interval
-
-
Method Details
-
value
-
timestamp
public long timestamp() -
validTo
-
toString
-
equals
-
hashCode
-