class Heartbeat {

    public boolean shouldHeartbeat(long now) {
        return timeToNextHeartbeat(now) == 0;
    }

    public  Heartbeat(long timeout,
                     long interval,
                     long now);

}