CompletableFuture < CounterConfiguration > getConfiguration ( String name ) { return stateCache . getAsync ( stateKey ( name ) ) . thenCompose ( existingConfiguration -> { if ( existingConfiguration == null ) { return checkGlobalConfiguration ( name ) ; } else { return CompletableFuture . completedFuture ( existingConfiguration ) ; } } ) ; }
Returns the counter s configuration .