Package org.apache.pulsar.broker.delayed
Interface DelayedDeliveryTrackerFactory
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BucketDelayedDeliveryTrackerFactory,InMemoryDelayedDeliveryTrackerFactory
Factory of InMemoryDelayedDeliveryTracker objects. This is the entry point for implementations.
Note: this interface is still being refined and some breaking changes might be introduced.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the factory and release all the resources.voidinitialize(PulsarService pulsarService) Initialize the factory implementation from the broker service configuration.Create a new tracker instance.
-
Method Details
-
initialize
Initialize the factory implementation from the broker service configuration.- Parameters:
pulsarService- the broker service- Throws:
Exception
-
newTracker
Create a new tracker instance.- Parameters:
dispatcher- a multi-consumer dispatcher instance
-
close
Close the factory and release all the resources.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-