Packages

final case class EventSource(consumerGroup: String = "", source: Source = kalix.eventing.EventSource.Source.Empty, ignore: Boolean = false, ignoreUnknown: Option[Boolean] = _root_.scala.None, handleDeletes: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[EventSource] with Product with Serializable

Event source configuration

consumerGroup

The consumer group id. By default, all rpc methods on a given service with the same source will be part of the same virtual consumer group, messages will be routed to the different methods by type. This can be used to override that. If you want multiple methods to act as independent consumers of the same source (ie, if you want the same event to be published to each consumer) then give each consumer a unique name. Note that this does depend on the event source supporting multiple consumer groups. Queue based event sources may not support this.

ignore

If the message is not of interest for consumption the method for that input message type can be marked with ignore: true. Enabling is more efficient than implementing the method. This option can only be used on method level

ignoreUnknown

If an incoming event does not have a matching handler, ignore the event and continue processing subsequent events, default is to fail to not accidentally miss events of newly added or unknown event types, as once eventing has continued there is no way to later revisit the ignored event. Enabling is more efficient than implementing a catch-all method. This option can only be used on service level.

handleDeletes

Call this method when an entity has been deleted, the method must accept google.protobuf.Empty as input. If the method is in a view the return type should be the view state message type, for other types of components the returned message type can be an arbitrary message, for example for publishing to eventing out on delete. Currently supported only for the value entity streams.

Annotations
@SerialVersionUID()
Source
EventSource.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventSource
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EventSource(consumerGroup: String = "", source: Source = kalix.eventing.EventSource.Source.Empty, ignore: Boolean = false, ignoreUnknown: Option[Boolean] = _root_.scala.None, handleDeletes: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    consumerGroup

    The consumer group id. By default, all rpc methods on a given service with the same source will be part of the same virtual consumer group, messages will be routed to the different methods by type. This can be used to override that. If you want multiple methods to act as independent consumers of the same source (ie, if you want the same event to be published to each consumer) then give each consumer a unique name. Note that this does depend on the event source supporting multiple consumer groups. Queue based event sources may not support this.

    ignore

    If the message is not of interest for consumption the method for that input message type can be marked with ignore: true. Enabling is more efficient than implementing the method. This option can only be used on method level

    ignoreUnknown

    If an incoming event does not have a matching handler, ignore the event and continue processing subsequent events, default is to fail to not accidentally miss events of newly added or unknown event types, as once eventing has continued there is no way to later revisit the ignored event. Enabling is more efficient than implementing a catch-all method. This option can only be used on service level.

    handleDeletes

    Call this method when an entity has been deleted, the method must accept google.protobuf.Empty as input. If the method is in a view the return type should be the view state message type, for other types of components the returned message type can be an arbitrary message, for example for publishing to eventing out on delete. Currently supported only for the value entity streams.

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 EventSource toany2stringadd[EventSource] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EventSource, B)
    Implicit
    This member is added by an implicit conversion from EventSource toArrowAssoc[EventSource] 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 clearHandleDeletes: EventSource
  8. def clearIgnoreUnknown: EventSource
  9. def clearSource: EventSource
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def companion: EventSource.type
    Definition Classes
    EventSource → GeneratedMessage
  12. val consumerGroup: String
  13. def discardUnknownFields: EventSource
  14. def ensuring(cond: (EventSource) => Boolean, msg: => Any): EventSource
    Implicit
    This member is added by an implicit conversion from EventSource toEnsuring[EventSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (EventSource) => Boolean): EventSource
    Implicit
    This member is added by an implicit conversion from EventSource toEnsuring[EventSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: => Any): EventSource
    Implicit
    This member is added by an implicit conversion from EventSource toEnsuring[EventSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): EventSource
    Implicit
    This member is added by an implicit conversion from EventSource toEnsuring[EventSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getDirect: DirectSource
  21. def getEventSourcedEntity: String
  22. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    EventSource → GeneratedMessage
  23. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    EventSource → GeneratedMessage
  24. def getHandleDeletes: Boolean
  25. def getIgnoreUnknown: Boolean
  26. def getTopic: String
  27. def getValueEntity: String
  28. val handleDeletes: Option[Boolean]
  29. val ignore: Boolean
  30. val ignoreUnknown: Option[Boolean]
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def productElementNames: Iterator[String]
    Definition Classes
    Product
  36. def serializedSize: Int
    Definition Classes
    EventSource → GeneratedMessage
  37. val source: Source
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  40. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  41. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  42. def toProtoString: String
    Definition Classes
    EventSource → GeneratedMessage
  43. val unknownFields: UnknownFieldSet
  44. def update(ms: (Lens[EventSource, EventSource]) => Mutation[EventSource]*): EventSource
    Definition Classes
    Updatable
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. def withConsumerGroup(__v: String): EventSource
  49. def withDirect(__v: DirectSource): EventSource
  50. def withEventSourcedEntity(__v: String): EventSource
  51. def withHandleDeletes(__v: Boolean): EventSource
  52. def withIgnore(__v: Boolean): EventSource
  53. def withIgnoreUnknown(__v: Boolean): EventSource
  54. def withSource(__v: Source): EventSource
  55. def withTopic(__v: String): EventSource
  56. def withUnknownFields(__v: UnknownFieldSet): EventSource
  57. def withValueEntity(__v: String): EventSource
  58. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  59. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    EventSource → GeneratedMessage
  60. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from EventSource toStringFormat[EventSource] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (EventSource, B)
    Implicit
    This member is added by an implicit conversion from EventSource toArrowAssoc[EventSource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Updatable[EventSource]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromEventSource to any2stringadd[EventSource]

Inherited by implicit conversion StringFormat fromEventSource to StringFormat[EventSource]

Inherited by implicit conversion Ensuring fromEventSource to Ensuring[EventSource]

Inherited by implicit conversion ArrowAssoc fromEventSource to ArrowAssoc[EventSource]

Ungrouped