T
- type of the program runtime contextpublic interface ProgramLifecycle<T extends RuntimeContext>
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy is the last thing that gets called before the program is shutdown.
|
void |
initialize(T context)
Initializes a Program.
|
void initialize(T context) throws Exception
This method will be called only once per ProgramLifecycle
instance.
context
- An instance of RuntimeContext
Exception
- If there is any error during initialization.void destroy()
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.