CloseContext Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. CloseContext
- com.
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 Close |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Close |
getCloseReason()
Returns the reason for stopping the event processing. |
|
Partition |
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:
Method Details
getCloseReason
public CloseReason getCloseReason()
Returns the reason for stopping the event processing.
Returns:
getPartitionContext
public PartitionContext getPartitionContext()
Returns the partition information for which the processing stopped.
Returns: