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