code: @Override
      public InmemCounter setCounterFactory(AbstractCounterFactory counterFactory) {
          if (counterFactory instanceof InmemCounterFactory) {
              super.setCounterFactory(counterFactory);
          } else {
              throw new IllegalArgumentException(
                      "Argument must be an instance of " + InmemCounterFactory.class.getName());
          }
          return this;
      }
docs: {@inheritDoc}
  
  @since 0.4.2