def METHOD_NAME(self) -> Optional[int]:
    """Get the heartbeat interval if it is set.
    Returns:
        The heartbeat interval if it is set, otherwise :obj:`None`.
    """
    raise NotImplementedError()