@Override
    public synchronized State cleanGroupByStates() {
        return partitionStateHolder.cleanGroupByStates();
    }
State holder for  partitioned use case
modules/siddhi-core/src/main/java/io/siddhi/core/util/snapshot/state/PartitionSyncStateHolder.java