Delen via


EventHubConsumerGroup.PrefetchSizeInBytes Property

Definition

Gets or sets the maximum size (in bytes) in total that any receive operation will actively cache. The size of each event data is determined by the SerializedSizeInBytes property.

public long? PrefetchSizeInBytes { get; set; }
member this.PrefetchSizeInBytes : Nullable<int64> with get, set
Public Property PrefetchSizeInBytes As Nullable(Of Long)

Property Value

Returns Int64.

Exceptions

Thrown when the size value is less than the minimum required value of 260K bytes.

Remarks

The size limit is not an absolute limit. the size might go over by at least one event data worth of size. Any EventHubReceiver created from this instance will inherit this value by default. Changes to this value will not be propagate to already created receiver, but will be used by new EventHubReceiver created after the change. Also, setting this property to non-null value will set PrefetchCount to zero. Note that setting the size too low will affect the effective performance of the Event Hub receive call.

Applies to