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