public synchronized Map<String, Map<String, State>> getAllStates() {
        Map<String, Map<String, State>> states = partitionStateHolder.getAllStates();
        for (Map<String, State> groupByStates : states.values()) {
            for (State state : groupByStates.values()) {
                state.activeUseCount++;
            }
        }
        return states;
    }
State holder for  partitioned use case
modules/siddhi-core/src/main/java/io/siddhi/core/util/snapshot/state/PartitionSyncStateHolder.java