Code example for TimeoutException

0
            throw new AssertionError(ex);
        } 
 
        if (!success)
        { 
            throw new TimeoutException();
        } 
    } 
 
    /** null message means "response from local write" */ 
    public abstract void response(Message msg);
 
    public abstract void assureSufficientLiveNodes() throws UnavailableException; 
}