class ServiceRetrier implements ServiceWrapper {

    public void setMaxTries(int maxTries) {

        if (maxTries < 1)
            throw new IllegalArgumentException("Maximum number of tries must be greater than zero");

        this._maxTries = maxTries;
    }

    public  ServiceRetrier(int delay, int maxTries);
    public  ServiceRetrier(int delay, int maxTries,
            boolean doubleDelay, boolean throwCauseException, Class<? extends Throwable>[] retryOn);
    public  ServiceRetrier();

}