pl.touk.nussknacker.engine.api.Lifecycle.scala Maven / Gradle / Ivy
package pl.touk.nussknacker.engine.api
import pl.touk.nussknacker.engine.api.runtimecontext.EngineRuntimeContext
/*
Currently handling Lifecycle is supported in following cases:
- Service
- EspExceptionHandler
- ProcessListener
Please note that extending this trait in e.g. Sources, Sinks or CustomTransformers *won't* work.
*/
trait Lifecycle extends AutoCloseable {
def open(context: EngineRuntimeContext): Unit = {}
def close(): Unit = {}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy