Class ProcessingState<T>
java.lang.Object
io.smallrye.reactive.messaging.kafka.commit.ProcessingState<T>
- Type Parameters:
T
- type of the processing state
Checkpoint state associated with an offset.
This object can be used to persist the processing state per topic-partition into a state store.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <V> ProcessingState<V>
getOrDefault
(ProcessingState<V> state, ProcessingState<V> defaultValue) static <V> ProcessingState<V>
getOrDefault
(ProcessingState<V> state, V defaultValue) static <V> ProcessingState<V>
getOrEmpty
(ProcessingState<V> state) getState()
int
hashCode()
static boolean
isEmptyOrNull
(ProcessingState<?> state) void
void
toString()
-
Field Details
-
EMPTY_STATE
-
-
Constructor Details
-
ProcessingState
-
ProcessingState
public ProcessingState()
-
-
Method Details
-
isEmptyOrNull
-
getOrDefault
public static <V> ProcessingState<V> getOrDefault(ProcessingState<V> state, ProcessingState<V> defaultValue) -
getOrDefault
-
getOrEmpty
-
getState
-
getOffset
-
setState
-
setOffset
-
equals
-
hashCode
public int hashCode() -
toString
-