private CompletableFuture < CounterConfiguration > checkGlobalConfiguration ( String name ) { for ( AbstractCounterConfiguration config : configuredCounters ) { if ( config . name ( ) . equals ( name ) ) { CounterConfiguration cConfig = parsedConfigToConfig ( config ) ; return stateCache . putIfAbsentAsync ( stateKey ( name ) , cConfig ) . thenApply ( configuration -> { if ( configuration == null ) { storage . store ( name , cConfig ) ; return cConfig ; } return configuration ; } ) ; } } return CompletableFutures . completedNull ( ) ; }
Checks if the counter is defined in the Infinispan s configuration file .