Compartilhar via


CloseContext Class

  • java.lang.Object
    • com.azure.messaging.eventhubs.models.CloseContext

public class CloseContext

This class contains information about a partition for which this EventProcessorClient stopped processing.

Constructor Summary

Constructor Description
CloseContext(PartitionContext partitionContext, CloseReason closeReason)

Creates a new instance of CloseContext.

Method Summary

Modifier and Type Method and Description
CloseReason getCloseReason()

Returns the reason for stopping the event processing.

PartitionContext getPartitionContext()

Returns the partition information for which the processing stopped.

Methods inherited from java.lang.Object

Constructor Details

CloseContext

public CloseContext(PartitionContext partitionContext, CloseReason closeReason)

Creates a new instance of CloseContext.

Parameters:

partitionContext - The partition information for which the processing stopped.
closeReason - The reason for stopping the event processing.

Method Details

getCloseReason

public CloseReason getCloseReason()

Returns the reason for stopping the event processing.

Returns:

The reason for stopping the event processing.

getPartitionContext

public PartitionContext getPartitionContext()

Returns the partition information for which the processing stopped.

Returns:

The partition information for which the processing stopped.

Applies to