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