Interface PushJobHeartbeatSender

All Superinterfaces:
Runnable
All Known Implementing Classes:
NoOpPushJobHeartbeatSender

public interface PushJobHeartbeatSender extends Runnable
This interface provides methods to send push job heartbeats
  • Method Details

    • getHeartbeatSendInterval

      Duration getHeartbeatSendInterval()
    • getHeartbeatInitialDelay

      Duration getHeartbeatInitialDelay()
    • start

      void start(@Nonnull String storeName, int storeVersion)
    • stop

      void stop()
    • getFirstSendHeartbeatException

      Optional<Exception> getFirstSendHeartbeatException()
      Get first exception encountered while it is sending heartbeats. If there are multiple exceptions encountered during the process of sending heartbeats, only the first one is recorded and returned here.
      Returns:
      Empty optional if no exception