add FiniteDuration for heartbeatInterval