| Package | Description |
|---|---|
| org.apache.flink.statefun.sdk | |
| org.apache.flink.statefun.sdk.match |
| Modifier and Type | Method and Description |
|---|---|
void |
StatefulFunction.invoke(Context context,
java.lang.Object input)
Invokes this function with a given input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatefulMatchFunction.invoke(Context context,
java.lang.Object input) |
| Modifier and Type | Method and Description |
|---|---|
MatchBinder |
MatchBinder.otherwise(java.util.function.BiConsumer<Context,java.lang.Object> action)
Binds a default action for inputs that fail to match any of the patterns bind via the
MatchBinder.predicate(Class, Predicate, BiConsumer) and MatchBinder.predicate(Class, BiConsumer) methods. |
<T> MatchBinder |
MatchBinder.predicate(java.lang.Class<T> type,
java.util.function.BiConsumer<Context,T> action)
Binds a simple type pattern which matches on the input's type.
|
<T> MatchBinder |
MatchBinder.predicate(java.lang.Class<T> type,
java.util.function.Predicate<T> predicate,
java.util.function.BiConsumer<Context,T> action)
Binds a pattern which matches on a function's input type, as well as a conditional predicate on
the input object's state.
|
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.