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()org.apache.kafka.common.header.Headersheaders()static <V> ValueTimestampHeaders<V> make(V value, long timestamp, org.apache.kafka.common.header.Headers headers) static <V> ValueTimestampHeaders<V> makeAllowNullable(V value, long timestamp, org.apache.kafka.common.header.Headers headers) Create a newValueTimestampHeadersinstance.longtoString()value()
Method Details
make
public static <V> ValueTimestampHeaders<V> make(V value, long timestamp, org.apache.kafka.common.header.Headers headers) - 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, org.apache.kafka.common.header.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
public org.apache.kafka.common.header.Headers headers()equals
hashCode
toString