PipelineContext

abstract class PipelineContext<TSubject : Any, TContext : Any>(val context: TContext) : CoroutineScope

Represents running execution of a pipeline

Parameters

context

: object representing context in which pipeline executes

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun finish()

Finishes current pipeline execution

Link copied to clipboard
abstract suspend fun proceed(): TSubject

Continues execution of the pipeline with the same subject

Link copied to clipboard
abstract suspend fun proceedWith(subject: TSubject): TSubject

Continues execution of the pipeline with the given subject

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var subject: TSubject

Subject of this pipeline execution that goes along the pipeline

Extensions

Link copied to clipboard
open override fun CoroutineScope.decode(source: ByteReadChannel): ByteReadChannel

Launch coroutine to decode source bytes.

Link copied to clipboard
open override fun CoroutineScope.encode(source: ByteReadChannel): ByteReadChannel

Launch coroutine to encode source bytes.