package akkastream
- Alphabetic
- Public
- Protected
Type Members
- abstract class AkkaServerStreamlet extends AkkaStreamlet with Server
An AkkaStreamlet that can listen on a port.
An AkkaStreamlet that can listen on a port. Using this trait instead of the AkkaStreamlet ensures that the streamlet will get an endpoint in Kubernetes. This trait mixes on the
Servertrait which is required for using a ServerStreamletLogic. The ServerStreamletLogic provides acontainerPortand agetContainerPort()method. It returns the TCP port that is opened on the container. Listen on all interfaces ("0.0.0.0") and use the port returned bycontainerPortto start a TCP server that will be exposed by an endpoint in Kubernetes. - abstract class AkkaStreamlet extends Streamlet[AkkaStreamletContext]
Extend from this class to build Akka-based Streamlets.
- trait AkkaStreamletContext extends StreamletContext
Runtime context for AkkaStreamlets, which provides means to create Sources and Sinks respectively for CodeInlets and CodeOutlets.
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,onStopandstopand provides access to the streamlet configuration. It also provides the ActorSystem and Materializer that will be used to run the AkkaStreamlet. - final class AkkaStreamletContextImpl extends AkkaStreamletContext
Implementation of the StreamletContext trait.
Implementation of the StreamletContext trait.
- Annotations
- @InternalApi()
- abstract class AkkaStreamletLogic extends StreamletLogic[AkkaStreamletContext]
Provides an entry-point for defining the behavior of an AkkaStreamlet.
Provides an entry-point for defining the behavior of an AkkaStreamlet. Override the
runmethod to implement the specific logic / code that should be executed once the streamlet deployed as part of a running cloudflow application. SeeRunnableGraphStreamletLogicif you just want to create a RunnableGraph. - trait Clustering extends AnyRef
- Annotations
- @ApiMayChange()
- final class KafkaSinkRef[T] extends WritableSinkRef[T]
- final class MultiData2[O1, O2] extends AnyRef
Data class to support sending to multiple outlets from a single originating message.
- sealed trait ResetPosition extends AnyRef
The position to initially start reading from, when using
plainSource.The position to initially start reading from, when using
plainSource.Maps to the "auto.offset.reset" Kafka setting with
autoOffsetReset. - trait Server extends AnyRef
Provides
containerPortand agetContainerPort()method.Provides
containerPortand agetContainerPort()method. It returns the TCP port that is opened on the container. A ServerStreamletLogic requires an implementation of this trait (for instance an AkkaServerStreamlet) when it is created. - abstract class ServerStreamletLogic extends AkkaStreamletLogic
Extends a StreamletLogic.
Extends a StreamletLogic. provides access to a containerPort so that it is possible to start a TCP server inside an AkkaStreamlet which will be exposed through an endpoint in Kubernetes.
- trait WritableSinkRef[T] extends SinkRef[(T, Committable)]
Extends akka.stream.SinkRef with a
writemethod that can be used to write data directly to the implementation thatSinkRef.sinkwrites to.Extends akka.stream.SinkRef with a
writemethod that can be used to write data directly to the implementation thatSinkRef.sinkwrites to. Using thewritemethod can be more convenient, especially when you want to write one value at a time and continue only once the write has completed. The alternative would be to use:Source.single(value).runWith(sink)))
but in that case it is not known when the value has been written.
Value Members
- case object AkkaStreamletRuntime extends StreamletRuntime with Product with Serializable
- case object Earliest extends ResetPosition with Product with Serializable
Automatically reset the offset to the earliest offset.
- case object Latest extends ResetPosition with Product with Serializable
Automatically reset the offset to the latest offset.
- object MultiData2