IEventProcessorFactory<T> Interface
Type Parameters
- T
The type of event processor objects produced by this factory, which must implement IEventProcessor
public interface IEventProcessorFactory
Interface that must be implemented by an event processor factory class.
User-provided factories are needed if creating an event processor object requires more work than just a new with a parameterless constructor.
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
createEventProcessor(PartitionContext context)
Called to create an event processor for the given partition. If it throws an exception, that causes this event processor host instance to give up ownership of the partition. |
Method Details
createEventProcessor
public T createEventProcessor(PartitionContext context)
Called to create an event processor for the given partition.
If it throws an exception, that causes this event processor host instance to give up ownership of the partition.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for