class Heartbeat {

    public boolean sessionTimeoutExpired(long now) {
        return now - Math.max(lastSessionReset, lastHeartbeatReceive) > timeout;
    }

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

}