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

org.compass.needle.terracotta.transaction.processor.TerracottaHolder Maven / Gradle / Ivy

There is a newer version: 2.2.2-ldh
Show newest version
package org.compass.needle.terracotta.transaction.processor;

import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

import org.compass.core.lucene.engine.transaction.support.job.TransactionJobs;

/**
 * @author kimchy
 */
public class TerracottaHolder {

    private final Map> jobsPerSubIndex = new ConcurrentHashMap>();

    private final Lock initializationLock = new ReentrantLock();

    private final Map processorLocks = new ConcurrentHashMap();

    public Map> getJobsPerSubIndex() {
        return jobsPerSubIndex;
    }

    public Map getProcessorLocks() {
        return processorLocks;
    }

    public Lock getInitializationLock() {
        return initializationLock;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy