Package org.apache.kafka.streams.state
Class ValueTimestampHeaders<V>
java.lang.Object
org.apache.kafka.streams.state.ValueTimestampHeaders<V>
- Type Parameters:
V- the value type
Combines a value with its timestamp and associated record headers.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <V> VgetValueOrNull(ValueTimestampHeaders<V> valueTimestampHeaders) Return the wrappedvalueof the givenvalueTimestampHeadersparameter if the parameter is notnull.inthashCode()headers()static <V> ValueTimestampHeaders<V>static <V> ValueTimestampHeaders<V>makeAllowNullable(V value, long timestamp, Headers headers) Create a newValueTimestampHeadersinstance.longtoString()value()
-
Method Details
-
make
- Type Parameters:
V- the type of the value- Parameters:
value- the valuetimestamp- the timestampheaders- the headers (may benull, treated as empty)- Returns:
- a new
ValueTimestampHeadersinstance if the providedvalueis notnull; otherwisenullis returned
-
makeAllowNullable
public static <V> ValueTimestampHeaders<V> makeAllowNullable(V value, long timestamp, Headers headers) - Type Parameters:
V- the type of the value- Parameters:
value- the value (may benull)timestamp- the timestampheaders- the headers (may benull, treated as empty)- Returns:
- a new
ValueTimestampHeadersinstance
-
getValueOrNull
Return the wrappedvalueof the givenvalueTimestampHeadersparameter if the parameter is notnull.- Type Parameters:
V- the type of the value- Parameters:
valueTimestampHeaders- aValueTimestampHeadersinstance; can benull- Returns:
- the wrapped
valueofvalueTimestampHeadersif notnull; otherwisenull
-
value
-
timestamp
public long timestamp() -
headers
-
equals
-
hashCode
public int hashCode() -
toString
-