EventHubClient.createEpochReceiverSync 方法

定义

重载

createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch)

Synchronous version of createEpochReceiver(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch).

createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch, final ReceiverOptions receiverOptions)

Synchronous version of createEpochReceiver(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch).

createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch)

public default PartitionReceiver createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch)

参数

consumerGroupName
final String

the consumer group name that this receiver should be grouped under.

partitionId
final String

the partition Id that the receiver belongs to. All data received will be from this partition only.

eventPosition
final EventPosition

the position to start receiving the events from. See EventPosition

epoch
final long

an unique identifier (epoch value) that the service uses, to enforce partition/lease ownership.

返回

PartitionReceiver instance which can be used for receiving EventData.

例外

EventHubException

if Service Bus service encountered problems during the operation.

createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch, final ReceiverOptions receiverOptions)

public default PartitionReceiver createEpochReceiverSync(final String consumerGroupName, final String partitionId, final EventPosition eventPosition, final long epoch, final ReceiverOptions receiverOptions)

参数

consumerGroupName
final String

the consumer group name that this receiver should be grouped under.

partitionId
final String

the partition Id that the receiver belongs to. All data received will be from this partition only.

eventPosition
final EventPosition

the position to start receiving the events from. See EventPosition

epoch
final long

an unique identifier (epoch value) that the service uses, to enforce partition/lease ownership.

receiverOptions
final ReceiverOptions

the set of options to enable on the event hubs receiver

返回

PartitionReceiver instance which can be used for receiving EventData.

例外

EventHubException

if Service Bus service encountered problems during the operation.

适用于