ReceiverOptions.setPrefetchCount(final int prefetchCount) 方法

定义

Set the number of events that can be pre-fetched and cached at the PartitionReceiver.

By default the value is 500

public void setPrefetchCount(final int prefetchCount)

参数

prefetchCount
final int

the number of events to pre-fetch. value must be between 1 and 2000.

例外

EventHubException

if setting prefetchCount encounters error

适用于