object KinesisFlow
- Source
- KinesisFlow.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KinesisFlow
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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 apply(streamName: String, settings: KinesisFlowSettings = KinesisFlowSettings.Defaults)(implicit kinesisClient: KinesisAsyncClient): Flow[PutRecordsRequestEntry, PutRecordsResultEntry, NotUsed]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def batchWritingFlow[S, T](streamName: String, handleBatch: (Iterable[(PutRecordsRequestEntry, T)]) => (Try[PutRecordsResponse]) => Try[Iterable[(S, T)]], settings: KinesisFlowSettings)(implicit kinesisClient: KinesisAsyncClient): Flow[Iterable[(PutRecordsRequestEntry, T)], (S, T), NotUsed]
- def batchingFlow[T](settings: KinesisFlowSettings): Flow[(PutRecordsRequestEntry, T), Iterable[(PutRecordsRequestEntry, T)], NotUsed]
- def byPartitionAndBytes(streamName: String, settings: KinesisFlowSettings = KinesisFlowSettings.Defaults)(implicit kinesisClient: KinesisAsyncClient): Flow[(String, ByteString), PutRecordsResultEntry, NotUsed]
- def byPartitionAndData(streamName: String, settings: KinesisFlowSettings = KinesisFlowSettings.Defaults)(implicit kinesisClient: KinesisAsyncClient): Flow[(String, ByteBuffer), PutRecordsResultEntry, NotUsed]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handlePutRecordsSuccess[T](entries: Iterable[(PutRecordsRequestEntry, T)])(result: PutRecordsResponse): List[(PutRecordsResultEntry, T)]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- 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()
- def withContext[T](streamName: String, settings: KinesisFlowSettings = KinesisFlowSettings.Defaults)(implicit kinesisClient: KinesisAsyncClient): FlowWithContext[PutRecordsRequestEntry, T, PutRecordsResultEntry, T, NotUsed]
Creates default implementation of
KinesisFlow
that takes inPutRecordsRequestEntry
with context and emitsPutRecordsResultEntry
with context.Creates default implementation of
KinesisFlow
that takes inPutRecordsRequestEntry
with context and emitsPutRecordsResultEntry
with context.To note is that the flow first does batching according to the
KinesisFlowSettings
provided and then writes the data in batches via theKinesisAsyncClient
. On any error from the client, the flow will fail.If it is necessary to have special handling for batching or of errors and successful results the methods @see KinesisFlow.batchingFlow & @see KinesisFlow.batchWritingFlow can be used and combined in other ways than the default in this method.