case class Transaction[Value](value: Value, partOffset: PartitionOffset) extends Tracked[Value] with HasPartition[Value] with Product with Serializable

A Tracked wrapper type using the Transactional Kafka interface. Transactional commits ensure the topic offset updates and message production happen atomicly.

This is necessary for exactly-once message semantics.

Value

The type of the object contained by the tracking wrapper.

value

The wrapped object.

partOffset

Transaction information.

Linear Supertypes
Serializable, Serializable, Product, Equals, HasPartition[Value], Tracked[Value], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transaction
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasPartition
  7. Tracked
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Transaction(value: Value, partOffset: PartitionOffset)

    value

    The wrapped object.

    partOffset

    Transaction information.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to any2stringadd[Transaction[Value]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Transaction[Value], B)
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to ArrowAssoc[Transaction[Value]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def ensuring(cond: (Transaction[Value]) ⇒ Boolean, msg: ⇒ Any): Transaction[Value]
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to Ensuring[Transaction[Value]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Transaction[Value]) ⇒ Boolean): Transaction[Value]
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to Ensuring[Transaction[Value]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Transaction[Value]
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to Ensuring[Transaction[Value]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Transaction[Value]
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to Ensuring[Transaction[Value]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fold[NewValue](fn: (Value, NewValue) ⇒ Value)(other: Tracked[NewValue]): Tracked[Value]

    Apply a fold to 2 messages so that their tracking information can be combined.

    Apply a fold to 2 messages so that their tracking information can be combined.

    NewValue

    The type of the wrapped object of the other tracked object.

    fn

    2 argument fold function to apply to the wrapped types.

    other

    The other tracked type to merge.

    returns

    A new Tracked object with the result of fn on each wrapped object which contains the merged tracking information.

    Attributes
    protected
    Definition Classes
    TransactionTracked
  15. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to StringFormat[Transaction[Value]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def map[NewValue](fn: (Value) ⇒ NewValue): Tracked[NewValue]

    Modify the wrapped Value by the function fn and preserve the tracking information.

    Modify the wrapped Value by the function fn and preserve the tracking information.

    NewValue

    The result type of the function.

    fn

    A function to apply to the wrapped Value.

    returns

    A new Tracked type with the same tracking, containing the new value.

    Attributes
    protected
    Definition Classes
    TransactionTracked
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def offset: Long
  23. def part: Int

    Partition of the source message of this object.

    Partition of the source message of this object.

    returns

    The partition ID of the source message.

    Definition Classes
    TransactionHasPartition
  24. val partOffset: PartitionOffset
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. val value: Value
    Definition Classes
    TransactionTracked
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. def [B](y: B): (Transaction[Value], B)
    Implicit
    This member is added by an implicit conversion from Transaction[Value] to ArrowAssoc[Transaction[Value]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HasPartition[Value]

Inherited from Tracked[Value]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Transaction[Value] to any2stringadd[Transaction[Value]]

Inherited by implicit conversion StringFormat from Transaction[Value] to StringFormat[Transaction[Value]]

Inherited by implicit conversion Ensuring from Transaction[Value] to Ensuring[Transaction[Value]]

Inherited by implicit conversion ArrowAssoc from Transaction[Value] to ArrowAssoc[Transaction[Value]]

Ungrouped