trait AkkaStreamletContext extends StreamletContext
Runtime context for AkkaStreamlets, which provides means to create Sources and Sinks respectively
for CodeInlets and CodeOutlets.
The StreamletContext also contains some lifecycle hooks, like signalReady
, onStop
and stop
and provides access to the streamlet configuration.
It also provides the ActorSystem and Materializer that will be used to run the AkkaStreamlet.
- Alphabetic
- By Inheritance
- AkkaStreamletContext
- StreamletContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class MountedPathUnavailableException extends Exception with Product with Serializable
- Definition Classes
- StreamletContext
Abstract Value Members
- abstract def alive(localMode: Boolean): Unit
Marks the streamlet pod "alive" for Kubernetes.
- abstract def ready(localMode: Boolean): Unit
Marks the streamlet pod "ready" for Kubernetes.
- abstract def signalReady(): Boolean
Signals that the streamlet is ready to process data.
Signals that the streamlet is ready to process data.
When a streamlet is run using
AkkaStreamletTestkit.run
, a StreamletExecution is returned.signalReady
completes the ready future. ready can be used for instance to wait for a Server to signal that it is ready to accept requests.- returns
true
if and only if successfully signalled. Otherwisefalse
.
- abstract def stop(): Future[Dun]
Stops the streamlet.
- abstract def stopOnException(nonFatal: Throwable): Unit
Stops the streamlet knowing an exception occured.
- implicit abstract def system: ActorSystem
The system in which the AkkaStreamlet will be run.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def config: Config
- Definition Classes
- StreamletContext
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findTopicForPort(port: StreamletPort): Topic
- Definition Classes
- StreamletContext
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getMountedPath(volumeMount: VolumeMount): Path
- Definition Classes
- StreamletContext
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val killSwitch: SharedKillSwitch
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onStop(f: () => Future[Dun]): Unit
Registers a callback, which is called when the streamlet is stopped.
Registers a callback, which is called when the streamlet is stopped. It is usually used to close resources that have been created in the streamlet.
- def runtimeBootstrapServers(topic: Topic): String
- Definition Classes
- StreamletContext
- final def streamletConfig: Config
- Definition Classes
- StreamletContext
- def streamletRef: String
- Definition Classes
- StreamletContext
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()