akka.projection.grpc.producer.scaladsl.EventProducer
EventProducerSource
Companion object EventProducerSource
final class EventProducerSource extends AnyRef
- Source
- EventProducer.scala
- Alphabetic
- By Inheritance
- EventProducerSource
- AnyRef
- Any
- Hide All
- Show All
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val entityType: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hasReplicatedEventMetadataTransformation: Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val producerFilter: (EventEnvelope[Any]) => Boolean
- val settings: EventProducerSettings
- val streamId: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val transformSnapshot: Option[(Any) => Any]
- val transformation: Transformation
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withProducerFilter[Event](producerFilter: (EventEnvelope[Event]) => Boolean): EventProducerSource
Filter events matching the predicate, for example based on tags.
- def withReplicatedEventOriginFilter(filter: EventOriginFilter): EventProducerSource
- def withStartingFromSnapshots[Snapshot, Event](transformSnapshot: (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
witheventsBySlicesStartingFromSnapshots
should be used instead. - 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.