All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.espertech.esper.runtime.internal.kernel.service.EPEventServiceThreadLocalEntry Maven / Gradle / Ivy

/*
 ***************************************************************************************
 *  Copyright (C) 2006 EsperTech, Inc. All rights reserved.                            *
 *  http://www.espertech.com/esper                                                     *
 *  http://www.espertech.com                                                           *
 *  ---------------------------------------------------------------------------------- *
 *  The software in this package is published under the terms of the GPL license       *
 *  a copy of which has been included with this distribution in the license.txt file.  *
 ***************************************************************************************
 */
package com.espertech.esper.runtime.internal.kernel.service;

import com.espertech.esper.common.internal.collection.ArrayBackedCollection;
import com.espertech.esper.common.internal.collection.DualWorkQueue;
import com.espertech.esper.common.internal.context.util.EPStatementAgentInstanceHandle;
import com.espertech.esper.common.internal.epl.expression.core.ExprEvaluatorContext;
import com.espertech.esper.common.internal.filtersvc.FilterHandle;
import com.espertech.esper.common.internal.schedule.ScheduleHandle;

import java.util.Map;

public class EPEventServiceThreadLocalEntry {
    private final DualWorkQueue dualWorkQueue;
    private final ArrayBackedCollection matchesArrayThreadLocal;
    private final ArrayBackedCollection scheduleArrayThreadLocal;
    private final Map matchesPerStmtThreadLocal;
    private final Map schedulePerStmtThreadLocal;
    private final ExprEvaluatorContext exprEvaluatorContext;

    public EPEventServiceThreadLocalEntry(DualWorkQueue dualWorkQueue, ArrayBackedCollection matchesArrayThreadLocal, ArrayBackedCollection scheduleArrayThreadLocal, Map matchesPerStmtThreadLocal, Map schedulePerStmtThreadLocal, ExprEvaluatorContext exprEvaluatorContext) {
        this.dualWorkQueue = dualWorkQueue;
        this.matchesArrayThreadLocal = matchesArrayThreadLocal;
        this.scheduleArrayThreadLocal = scheduleArrayThreadLocal;
        this.matchesPerStmtThreadLocal = matchesPerStmtThreadLocal;
        this.schedulePerStmtThreadLocal = schedulePerStmtThreadLocal;
        this.exprEvaluatorContext = exprEvaluatorContext;
    }

    public DualWorkQueue getDualWorkQueue() {
        return dualWorkQueue;
    }

    public ArrayBackedCollection getMatchesArrayThreadLocal() {
        return matchesArrayThreadLocal;
    }

    public ArrayBackedCollection getScheduleArrayThreadLocal() {
        return scheduleArrayThreadLocal;
    }

    public Map getMatchesPerStmtThreadLocal() {
        return matchesPerStmtThreadLocal;
    }

    public Map getSchedulePerStmtThreadLocal() {
        return schedulePerStmtThreadLocal;
    }

    public ExprEvaluatorContext getExprEvaluatorContext() {
        return exprEvaluatorContext;
    }
}