Interface Tracking
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DefaultTracking
The Tracking interface provides a mechanism to start and manage the tracking of messages by a given set of handlers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the tracking process, releasing any resources held by it.default Registration
start
(FluxCapacitor fluxCapacitor, Object... handlers) Starts the tracking process using the specified FluxCapacitor instance and the provided handlers.start
(FluxCapacitor fluxCapacitor, List<?> handlers) Starts tracking messages using the provided FluxCapacitor and a list of handlers.
-
Method Details
-
start
Starts the tracking process using the specified FluxCapacitor instance and the provided handlers.- Parameters:
fluxCapacitor
- the FluxCapacitor instance to be used for trackinghandlers
- the handlers responsible for processing tracked messages- Returns:
- a Registration instance that can be used to manage and cancel the tracking process
-
start
Starts tracking messages using the provided FluxCapacitor and a list of handlers.- Parameters:
fluxCapacitor
- the FluxCapacitor used to manage the message tracking processhandlers
- a list of handlers that process the tracked messages- Returns:
- a Registration instance that can be used to cancel the tracking process
-
close
void close()Closes the tracking process, releasing any resources held by it. This method is invoked automatically whenFluxCapacitor
is shut down.- Specified by:
close
in interfaceAutoCloseable
-