final class AkkaStreamletContextImpl extends AkkaStreamletContext
Implementation of the StreamletContext trait.
- Annotations
- @InternalApi()
- Source
- AkkaStreamletContextImpl.scala
- Alphabetic
- By Inheritance
- AkkaStreamletContextImpl
- AkkaStreamletContext
- StreamletContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AkkaStreamletContextImpl(streamletDefinition: StreamletDefinition, sys: ActorSystem)
Type Members
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
- def alive(localMode: Boolean): Unit
Marks the streamlet pod "alive" for Kubernetes.
Marks the streamlet pod "alive" for Kubernetes.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- 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 committableSink[T](committerSettings: CommitterSettings): Sink[(T, Committable), NotUsed]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def committableSink[T](outlet: CodecOutlet[T], committerSettings: CommitterSettings): Sink[(T, Committable), NotUsed]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def config: Config
- Definition Classes
- AkkaStreamletContextImpl → 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
- def flexiFlow[T](outlet: CodecOutlet[T]): Flow[(Seq[_ <: T], Committable), (Unit, Committable), NotUsed]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- 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
- Definition Classes
- AkkaStreamletContext
- def metricTags(): Map[String, String]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- 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.
- Definition Classes
- AkkaStreamletContext
- def plainSink[T](outlet: CodecOutlet[T]): Sink[T, NotUsed]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def plainSource[T](inlet: CodecInlet[T], resetPosition: ResetPosition = Latest): Source[T, NotUsed]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def ready(localMode: Boolean): Unit
Marks the streamlet pod "ready" for Kubernetes.
Marks the streamlet pod "ready" for Kubernetes.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def runtimeBootstrapServers(topic: Topic): String
- Definition Classes
- StreamletContext
- def shardedPlainSource[T, M, E](inlet: CodecInlet[T], shardEntity: Entity[M, E], resetPosition: ResetPosition = Latest, kafkaTimeout: FiniteDuration = 10.seconds): Source[T, Future[NotUsed]]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def shardedSourceWithCommittableContext[T, M, E](inlet: CodecInlet[T], shardEntity: Entity[M, E], kafkaTimeout: FiniteDuration = 10.seconds): SourceWithContext[T, CommittableOffset, Future[NotUsed]]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- 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
.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def sinkRef[T](outlet: CodecOutlet[T]): WritableSinkRef[T]
Creates a SinkRef to write to, for the specified CodecOutlet
Creates a SinkRef to write to, for the specified CodecOutlet
- outlet
the specified CodecOutlet
- returns
the WritableSinkRef created
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def sourceWithCommittableContext[T](inlet: CodecInlet[T]): SourceWithCommittableContext[T]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def stop(): Future[Dun]
Stops the streamlet.
Stops the streamlet.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def stopOnException(nonFatal: Throwable): Unit
Stops the streamlet knowing an exception occured.
Stops the streamlet knowing an exception occured.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- final def streamletConfig: Config
- Definition Classes
- StreamletContext
- val streamletExecution: StreamletExecution
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- def streamletRef: String
- Definition Classes
- StreamletContext
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val system: ActorSystem
The system in which the AkkaStreamlet will be run.
The system in which the AkkaStreamlet will be run.
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- 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()
- object KafkaControls
See https://doc.akka.io/docs/alpakka-kafka/current/consumer.html#controlled-shutdown
See https://doc.akka.io/docs/alpakka-kafka/current/consumer.html#controlled-shutdown
- Annotations
- @InternalApi()
Deprecated Value Members
- def sourceWithOffsetContext[T](inlet: CodecInlet[T]): SourceWithOffsetContext[T]
- Definition Classes
- AkkaStreamletContextImpl → AkkaStreamletContext
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.4) Use sourceWithCommittableContext