object ProducerMessage
- Alphabetic
- By Inheritance
- ProducerMessage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Envelope[+P] extends AnyRef
Zero or more events to be produced to an EventHub, routed to a particular partition and alongside a pass-through value to be emitted downstream after production.
Zero or more events to be produced to an EventHub, routed to a particular partition and alongside a pass-through value to be emitted downstream after production.
Not for user extension.
- Annotations
- @DoNotInherit()
- sealed trait Partitioning extends AnyRef
How the contents of a given
Envelopeshould be routed by Event Hubs.How the contents of a given
Envelopeshould be routed by Event Hubs.Not for user extension
- Annotations
- @DoNotInherit()
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 batch[P](events: List[EventData], passThrough: P, partitioning: Partitioning): Envelope[P]
Java API: Create an Envelope with a list of events to produce and the given pass-through value with the given Partitioning.
Java API: Create an Envelope with a list of events to produce and the given pass-through value with the given Partitioning.
This is an optimized equivalent to
batch(events).withPassThrough(passThrough).withPartitioning(partitioning).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batch[P](events: Seq[EventData], passThrough: P, partitioning: Partitioning): Envelope[P]
Scala API: Create an Envelope with a sequence of events to produce and the given pass-through value with the given Partitioning.
Scala API: Create an Envelope with a sequence of events to produce and the given pass-through value with the given Partitioning.
This is an optimized equivalent to
batch(events).withPassThrough(passThrough).withPartitioning(partitioning).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batch[P](events: List[EventData], passThrough: P): Envelope[P]
Java API: Create an Envelope with a list of events to produce and the given pass-through value.
Java API: Create an Envelope with a list of events to produce and the given pass-through value. The default Partitioning is "round-robin".
This is an optimized equivalent to
batch(events).withPassThrough(passThrough).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batch[P](events: Seq[EventData], passThrough: P): Envelope[P]
Scala API: Create an Envelope with a sequence of events to produce and the given pass-through value.
Scala API: Create an Envelope with a sequence of events to produce and the given pass-through value. The default Partitioning is "round-robin".
This is an optimized equivalent to
batch(events).withPassThrough(passThrough).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batch(events: List[EventData]): Envelope[NotUsed]
Java API: Create an Envelope with a list of events to produce and no useful pass-through value.
Java API: Create an Envelope with a list of events to produce and no useful pass-through value. The default Partitioning is "round-robin".
The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batch(events: Seq[EventData]): Envelope[NotUsed]
Scala API: Create an Envelope with a sequence of events to produce and no useful pass-through value.
Scala API: Create an Envelope with a sequence of events to produce and no useful pass-through value. The default Partitioning is "round-robin".
The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batchWithPartitioning(events: List[EventData], partitioning: Partitioning): Envelope[NotUsed]
Java API: Create an Envelope with a list of events to produce, no useful pass-through value, and the given Partitioning.
Java API: Create an Envelope with a list of events to produce, no useful pass-through value, and the given Partitioning.
This is an optimized equivalent to
batch(events).withPartitioning(partitioning).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def batchWithPartitioning(events: Seq[EventData], partitioning: Partitioning): Envelope[NotUsed]
Scala API: Create an Envelope with a sequence of events to produce, no useful pass-through value, and the given Partitioning.
Scala API: Create an Envelope with a sequence of events to produce, no useful pass-through value, and the given Partitioning.
This is an optimized equivalent to
batch(events).withPartitioning(partitioning).The events in the Envelope will be produced as a single batch and are subject to the size constraints imposed by Event Hubs.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def empty[P](passThrough: P, partitioning: Partitioning): Envelope[P]
Create an Envelope with the given pass-through value and no events to produce.
Create an Envelope with the given pass-through value and no events to produce. If events are appended, the resulting Envelope will have the given Partitioning.
This is an optimized equivalent to
empty().withPassThrough(passThrough).withPartitioning(partitioning) - def empty[P](passThrough: P): Envelope[P]
Create an Envelope with the given pass-through value and no events to produce.
Create an Envelope with the given pass-through value and no events to produce. If events are appended, the resulting Envelope will have "round-robin" partitioning unless
withPartitioningis also used.This is an optimized equivalent to
empty().withPassThrough(passThrough) - def empty(): Envelope[NotUsed]
Create an Envelope with no events to produce and no useful pass-through value.
Create an Envelope with no events to produce and no useful pass-through value. If events are appended, the resulting Envelope will have "round-robin" partitioning unless
withPartitioningis also used.This is a reasonable starting point for programmatically building up an Envelope.
- def emptyWithPartitioning(partitioning: Partitioning): Envelope[NotUsed]
Create an Envelope with no events to produce and no useful pass-through value, but with a Partitioning set in case events are appended to the Envelope.
Create an Envelope with no events to produce and no useful pass-through value, but with a Partitioning set in case events are appended to the Envelope.
This is an optimized equivalent to
empty().withPartitioning(partitioning). - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def explicitPartitioning(partitionId: String): Partitioning
A
Envelopewith this Partitioning will be routed to a specific partition in an Event Hub. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def multi[P](events: List[EventData], passThrough: P, partitioning: Partitioning): Envelope[P]
Java API: Create an Envelope from a list of events to produce and the given pass-through value with the given Partitioning.
Java API: Create an Envelope from a list of events to produce and the given pass-through value with the given Partitioning.
This is an optimized equivalent to
multi(events).withPassThrough(passThrough).withPartitioning(partitioning).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multi[P](events: Seq[EventData], passThrough: P, partitioning: Partitioning): Envelope[P]
Scala API: Create an Envelope from a sequence of events to produce and the given pass-through value with the given Partitioning.
Scala API: Create an Envelope from a sequence of events to produce and the given pass-through value with the given Partitioning.
This is an optimized equivalent to
multi(events).withPassThrough(passThrough).withPartitioning(partitioning).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multi[P](events: List[EventData], passThrough: P): Envelope[P]
Java API: Create an Envelope from a list of events to produce and the given pass-through value.
Java API: Create an Envelope from a list of events to produce and the given pass-through value. The default Partitioning is "round-robin".
This is an optimized equivalent to
multi(events).withPassThrough(passThrough).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multi[P](events: Seq[EventData], passThrough: P): Envelope[P]
Scala API: Create an Envelope from a sequence of events to produce and the given pass-through value.
Scala API: Create an Envelope from a sequence of events to produce and the given pass-through value. The default Partitioning is "round-robin".
This is an optimized equivalent to
multi(events).withPassThrough(passThrough).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multi(events: List[EventData]): Envelope[NotUsed]
Java API: Create an Envelope from a list of events to produce and no useful pass-through value.
Java API: Create an Envelope from a list of events to produce and no useful pass-through value. The default Partitioning is "round-robin".
The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multi(events: Seq[EventData]): Envelope[NotUsed]
Scala API: Create an Envelope with a sequence of events to produce and no useful pass-through value.
Scala API: Create an Envelope with a sequence of events to produce and no useful pass-through value. The default Partitioning is "round-robin".
The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multiWithPartitioning(events: List[EventData], partitioning: Partitioning): Envelope[NotUsed]
Java API: Create an Envelope from a list of events to produce, no useful pass-through value, and the given Partitioning.
Java API: Create an Envelope from a list of events to produce, no useful pass-through value, and the given Partitioning.
This is an optimized equivalent to
multi(events).withPartitioning(partitioning).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- def multiWithPartitioning(events: Seq[EventData], partitioning: Partitioning): Envelope[NotUsed]
Scala API: Create an Envelope with a sequence of events to produce, no useful pass-through value, and the given Partitioning.
Scala API: Create an Envelope with a sequence of events to produce, no useful pass-through value, and the given Partitioning.
This is an optimized equivalent to
multi(events).withPartitioning(partitioning).The events in the Envelope may be produced in separate operations (e.g. to satisfy size constraints imposed by Event Hubs) and the individual operations may be retried separately. If an event in this envelope is successfully published to an Event Hub, all events in this envelope before that event were also successfully published.
- 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 partitionByKey(key: String): Partitioning
A
Envelopewith this Partitioning will be routed to a partition based on the hash of the given key modulo the current number of partitions in the Event Hub. - def roundRobinPartitioning: Partitioning
An
Envelopewith this Partitioning will be routed to any available partition in an Event Hub.An
Envelopewith this Partitioning will be routed to any available partition in an Event Hub. There is no guarantee on the order of consumption of events with this Partitioning. - def single[P](event: EventData, passThrough: P, partitioning: Partitioning): Envelope[P]
Create an Envelope with the given event, pass-through value, and Partitioning
Create an Envelope with the given event, pass-through value, and Partitioning
This is an optimized equivalent to
single(event).withPassThrough(passThrough).withPartitioning(partitioning) - def single[P](event: EventData, passThrough: P): Envelope[P]
Create an Envelope with the given event and pass-through value.
Create an Envelope with the given event and pass-through value. The default Partitioning is "round-robin"
This is an optimized equivalent to
single(event).withPassThrough(passThrough) - def single(event: EventData): Envelope[NotUsed]
Create an Envelope with the given event and no useful pass-through value.
Create an Envelope with the given event and no useful pass-through value. The default Partitioning is "round-robin".
- def singleWithPartitioning(event: EventData, partitioning: Partitioning): Envelope[NotUsed]
Create an Envelope with the given event, no useful pass-through value, and the given Partitioning.
Create an Envelope with the given event, no useful pass-through value, and the given Partitioning.
This is an optimized equivalent to
single(event).withPartitioning(partitioning) - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()