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 TypeMethodDescriptionvoidAppends the values to the bag user state for the given key and window.voidClears the bag user state for the given key and window.Returns anIterableof values representing the bag user state for the given key and window.
-
Method Details
-
get
Returns anIterableof values representing the bag user state for the given key and window.TODO: Add support for bag user state chunking and caching if a
Reiterableis 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.
-