Packages

final class EventProducerSource extends AnyRef

Source
EventProducerSource.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventProducerSource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EventProducerSource(entityType: String, streamId: String, transformation: Transformation, settings: EventProducerSettings, producerFilter: Predicate[EventEnvelope[Any]])
  2. new EventProducerSource(entityType: String, streamId: String, transformation: Transformation, settings: EventProducerSettings)
  3. new EventProducerSource(entityType: String, streamId: String, transformation: Transformation, settings: EventProducerSettings, transformSnapshot: Optional[Function[Any, Any]])
  4. new EventProducerSource(entityType: String, streamId: String, transformation: Transformation, settings: EventProducerSettings, producerFilter: Predicate[EventEnvelope[Any]], transformSnapshot: Optional[Function[Any, Any]], replicatedEventOriginFilter: Option[EventOriginFilter])

    entityType

    The internal entity type name

    streamId

    The public, logical, stream id that consumers use to consume this source

    transformation

    Transformations for turning the internal events to public message types

    settings

    The event producer settings used (can be shared for multiple sources)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asScala: scaladsl.EventProducer.EventProducerSource
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. val entityType: String
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. val producerFilter: Predicate[EventEnvelope[Any]]
  17. val settings: EventProducerSettings
  18. val streamId: String
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. val transformSnapshot: Optional[Function[Any, Any]]
  22. val transformation: Transformation
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. def withProducerFilter[Event](producerFilter: Predicate[EventEnvelope[Event]]): EventProducerSource

    Filter events matching the predicate, for example based on tags.

  27. def withStartingFromSnapshots[Snapshot, Event](transformSnapshot: Function[Snapshot, Event]): EventProducerSource

    Use snapshots as starting points and thereby reducing number of events that have to be loaded.

    Use snapshots as starting points and thereby reducing number of events that have to be loaded. This can be useful if the consumer start from zero without any previously processed offset or if it has been disconnected for a long while and its offset is far behind.

    First it loads all snapshots with timestamps greater than or equal to the offset timestamp. There is at most one snapshot per persistenceId. The snapshots are transformed to events with the given transformSnapshot function.

    After emitting the snapshot events the ordinary events with sequence numbers after the snapshots are emitted.

    Important note: This should not be used together with EventProducerPush. In that case SourceProvider with eventsBySlicesStartingFromSnapshots should be used instead.

  28. def withTopicProducerFilter(topicExpression: String): EventProducerSource

    Filter events matching the topic expression according to MQTT specification, including wildcards.

    Filter events matching the topic expression according to MQTT specification, including wildcards. The topic of an event is defined by a tag with certain prefix, see topic-tag-prefix configuration.

Deprecated Value Members

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

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped