Package com.espertech.esper.core.service

Examples of com.espertech.esper.core.service.StatementAgentInstanceLock.acquireWriteLock()


    public EventBean[] execute(NamedWindowProcessorInstance instance) {
        EventBean event = insertHelper.process(new EventBean[0], true, true, exprEvaluatorContext);
        EventBean[] inserted = new EventBean[] {event};
        AgentInstanceContext ctx = instance.getTailViewInstance().getAgentInstanceContext();
        StatementAgentInstanceLock ailock = ctx.getAgentInstanceLock();
        ailock.acquireWriteLock(null);
        try {
            instance.getRootViewInstance().update(inserted, null);
        }
        catch (EPException ex) {
            instance.getRootViewInstance().update(null, inserted);
View Full Code Here


    public AgentInstanceArraySafeIterator(AgentInstance[] instances) {
        super(instances);
        for (int i = 0; i < instances.length; i++) {
            StatementAgentInstanceLock instanceLock = instances[i].getAgentInstanceContext().getEpStatementAgentInstanceHandle().getStatementAgentInstanceLock();
            instanceLock.acquireWriteLock(null);
        }
    }

    public void close() {
        for (int i = 0; i < instances.length; i++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.