final case class ProtoInlet[T <: GeneratedMessageV3](name: String, clazz: Class[T], hasUniqueGroupId: Boolean = false, errorHandler: (Array[Byte], Throwable) => Option[T] = CodecInlet.logAndSkip[T](_: Array[Byte], _: Throwable)) extends CodecInlet[T] with Product with Serializable
- Alphabetic
- By Inheritance
- ProtoInlet
- Serializable
- Product
- Equals
- CodecInlet
- Inlet
- StreamletPort
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ProtoInlet(name: String, clazz: Class[T], hasUniqueGroupId: Boolean = false, errorHandler: (Array[Byte], Throwable) => Option[T] = CodecInlet.logAndSkip[T](_: Array[Byte], _: Throwable))
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val clazz: Class[T]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val codec: ProtoCodec[T]
The codec is used to deserialize the data that is read from the inlet.
The codec is used to deserialize the data that is read from the inlet.
- Definition Classes
- ProtoInlet → CodecInlet
- val descriptor: Descriptor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errorHandler: (Array[Byte], Throwable) => Option[T]
handle marshalling errors
handle marshalling errors
- Definition Classes
- ProtoInlet → CodecInlet
- 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()
- val hasUniqueGroupId: Boolean
Returns true when this inlet has a unique group Id, so that the inlet will receive data from all partitions.
Returns true when this inlet has a unique group Id, so that the inlet will receive data from all partitions. This is useful for when you scale a streamlet, and you want all the streamlet instances to receive all the data. If no unique group Id is set (which is the default), streamlet instances will each receive part of the data (on this inlet).
- Definition Classes
- ProtoInlet → CodecInlet
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- Definition Classes
- ProtoInlet → StreamletPort
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- def schemaAsString: String
Describes the schema used to deserialize the data.
Describes the schema used to deserialize the data.
- Definition Classes
- ProtoInlet → CodecInlet
- def schemaDefinition: SchemaDefinition
- Definition Classes
- ProtoInlet → StreamletPort
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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 withErrorHandler(handler: (Array[Byte], Throwable) => Option[T]): CodecInlet[T]
Sets a value for error handler for potential data unmarshalling errors If no error handler is specified, defaults to logging error and skipping record.
Sets a value for error handler for potential data unmarshalling errors If no error handler is specified, defaults to logging error and skipping record.
- Definition Classes
- ProtoInlet → CodecInlet
- def withUniqueGroupId: ProtoInlet[T]
Sets a unique group Id so that the inlet will receive data from all partitions.
Sets a unique group Id so that the inlet will receive data from all partitions. This is useful for when you scale a streamlet, and you want all the streamlet instances to receive all the data. If no unique group Id is set (which is the default), streamlet instances will each receive part of the data (on this inlet).
- Definition Classes
- ProtoInlet → CodecInlet