Interface StateRequestHandlers.BagUserStateHandler<K,V,W extends BoundedWindow>
- Enclosing class:
StateRequestHandlers
@ThreadSafe
public static interface StateRequestHandlers.BagUserStateHandler<K,V,W extends BoundedWindow>
A handler for bag user state.
Note that this handler is expected to be thread safe as it will be invoked concurrently.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends the values to the bag user state for the given key and window.void
Clears the bag user state for the given key and window.Returns anIterable
of values representing the bag user state for the given key and window.
-
Method Details
-
get
Returns anIterable
of values representing the bag user state for the given key and window.TODO: Add support for bag user state chunking and caching if a
Reiterable
is returned. -
append
Appends the values to the bag user state for the given key and window. -
clear
Clears the bag user state for the given key and window.
-