Package step.functions.runner
Class FunctionRunner.Context
- java.lang.Object
-
- step.functions.runner.FunctionRunner.Context
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- FunctionRunner
public static class FunctionRunner.Context extends Object implements Closeable
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Context(ch.exense.commons.app.Configuration configuration, AbstractFunctionType<?> functionType, Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
step.functions.io.Output<javax.json.JsonObject>
run(Function function, String argument)
step.functions.io.Output<javax.json.JsonObject>
run(Function function, javax.json.JsonObject argument)
-
-
-
Constructor Detail
-
Context
protected Context(ch.exense.commons.app.Configuration configuration, AbstractFunctionType<?> functionType, Map<String,String> properties)
-
-
Method Detail
-
run
public step.functions.io.Output<javax.json.JsonObject> run(Function function, javax.json.JsonObject argument)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-