// Create the counter configuration builder CounterManagerConfigurationBuilder counterBuilder = ... // Bounded counter from 0 to 10. // Only the name() is mandatory. // Do not invoke the lowerBound() or upperBound() if you want an unbounded counter. counterBuilder.addStrongCounter().name("my-counter").initialValue(0).storage(Storage.VOLATILE).lowerBound(0).upperBound(10);