Package com.linkedin.venice.heartbeat
Class NoOpPushJobHeartbeatSender
java.lang.Object
com.linkedin.venice.heartbeat.NoOpPushJobHeartbeatSender
- All Implemented Interfaces:
PushJobHeartbeatSender
,Runnable
-
Constructor Details
-
NoOpPushJobHeartbeatSender
public NoOpPushJobHeartbeatSender()
-
-
Method Details
-
getHeartbeatSendInterval
- Specified by:
getHeartbeatSendInterval
in interfacePushJobHeartbeatSender
-
getHeartbeatInitialDelay
- Specified by:
getHeartbeatInitialDelay
in interfacePushJobHeartbeatSender
-
start
- Specified by:
start
in interfacePushJobHeartbeatSender
-
stop
public void stop()- Specified by:
stop
in interfacePushJobHeartbeatSender
-
run
public void run() -
getFirstSendHeartbeatException
Description copied from interface:PushJobHeartbeatSender
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.- Specified by:
getFirstSendHeartbeatException
in interfacePushJobHeartbeatSender
- Returns:
- Empty optional if no exception
-