Package org.apache.pulsar.broker.delayed
Interface DelayedDeliveryTrackerFactory
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
InMemoryDelayedDeliveryTrackerFactory
@Beta public interface DelayedDeliveryTrackerFactory extends java.lang.AutoCloseableFactory 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the factory and release all the resources.voidinitialize(org.apache.pulsar.broker.ServiceConfiguration config)Initialize the factory implementation from the broker service configuration.DelayedDeliveryTrackernewTracker(PersistentDispatcherMultipleConsumers dispatcher)Create a new tracker instance.
-
-
-
Method Detail
-
initialize
void initialize(org.apache.pulsar.broker.ServiceConfiguration config) throws java.io.IOExceptionInitialize the factory implementation from the broker service configuration.- Parameters:
config- the broker service config object- Throws:
java.io.IOException
-
newTracker
DelayedDeliveryTracker newTracker(PersistentDispatcherMultipleConsumers dispatcher)
Create a new tracker instance.- Parameters:
dispatcher- a multi-consumer dispatcher instance
-
close
void close() throws java.io.IOExceptionClose the factory and release all the resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-