t

cloudflow.akkastream

AkkaStreamletContext

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.

Linear Supertypes
StreamletContext, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AkkaStreamletContext
  2. StreamletContext
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class MountedPathUnavailableException extends Exception with Product with Serializable
    Definition Classes
    StreamletContext

Abstract Value Members

  1. abstract def alive(localMode: Boolean): Unit

    Marks the streamlet pod "alive" for Kubernetes.

  2. abstract def ready(localMode: Boolean): Unit

    Marks the streamlet pod "ready" for Kubernetes.

  3. 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. Otherwise false.

  4. abstract def stop(): Future[Dun]

    Stops the streamlet.

  5. abstract def stopOnException(nonFatal: Throwable): Unit

    Stops the streamlet knowing an exception occured.

  6. implicit abstract def system: ActorSystem

    The system in which the AkkaStreamlet will be run.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def config: Config
    Definition Classes
    StreamletContext
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findTopicForPort(port: StreamletPort): Topic
    Definition Classes
    StreamletContext
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getMountedPath(volumeMount: VolumeMount): Path
    Definition Classes
    StreamletContext
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val killSwitch: SharedKillSwitch
    Attributes
    protected
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. 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.

  20. def runtimeBootstrapServers(topic: Topic): String
    Definition Classes
    StreamletContext
  21. final def streamletConfig: Config
    Definition Classes
    StreamletContext
  22. def streamletRef: String
    Definition Classes
    StreamletContext
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from StreamletContext

Inherited from AnyRef

Inherited from Any

Ungrouped