public class CommandInterpreterFn extends java.lang.Object implements StatefulFunction
Constructor and Description |
---|
CommandInterpreterFn(CommandInterpreter interpreter) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
apply(Context context,
Message message)
Applies an input message to this function.
|
public static final ValueSpec<java.lang.Long> STATE
public CommandInterpreterFn(CommandInterpreter interpreter)
public java.util.concurrent.CompletableFuture<java.lang.Void> apply(Context context, Message message) throws java.lang.Throwable
StatefulFunction
apply
in interface StatefulFunction
context
- the Context
of the current invocation.message
- the input message.java.lang.Throwable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.