Interface Tracking

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
DefaultTracking

public interface Tracking extends AutoCloseable
The Tracking interface provides a mechanism to start and manage the tracking of messages by a given set of handlers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      default Registration start(FluxCapacitor fluxCapacitor, Object... handlers)
      Starts the tracking process using the specified FluxCapacitor instance and the provided handlers.
      Parameters:
      fluxCapacitor - the FluxCapacitor instance to be used for tracking
      handlers - the handlers responsible for processing tracked messages
      Returns:
      a Registration instance that can be used to manage and cancel the tracking process
    • start

      Registration start(FluxCapacitor fluxCapacitor, List<?> handlers)
      Starts tracking messages using the provided FluxCapacitor and a list of handlers.
      Parameters:
      fluxCapacitor - the FluxCapacitor used to manage the message tracking process
      handlers - 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 when FluxCapacitor is shut down.
      Specified by:
      close in interface AutoCloseable