class CounterDelegator extends BaseDelegator implements ICounterDelegator {

    @Override
    public void deleteCounter(final String counterName, final boolean perforceCounter)
            throws ConnectionException, RequestException, AccessException {

        Validate.notBlank(counterName, "Counter name shouldn't null or empty");

        try {
            CounterOptions counterOptions = new CounterOptions(perforceCounter, true, false);
            setCounter(counterName, null, counterOptions);
        } catch (final ConnectionException | AccessException | RequestException exc) {
            throw exc;
        } catch (P4JavaException exc) {
            throw new RequestException(exc.getMessage(), exc);
        }
    }

    public  CounterDelegator(final IOptionsServer server);

}