public class EntryPoint extends Object
| Constructor and Description |
|---|
EntryPoint() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String... args) |
int |
run(Map<String,String> env,
EventCodec codec,
PrintStream loggingOutput,
String... args)
Entry point runner - this executes the whole lifecycle of the fn Java FDK runtime - including multiple invocations in the function for hot functions
|
public static void main(String... args)
public int run(Map<String,String> env, EventCodec codec, PrintStream loggingOutput, String... args)
env - the map of environment variables to run the function with (typically System.getenv but may be customised for testing)codec - the codec to run the function withloggingOutput - the stream to send function error/logging to - this will be wrapped into System.err within the funcitonargs - any further args passed to the entry point - specifically the class/method nameCopyright © 2023. All rights reserved.