org.compass.needle.terracotta.transaction.processor.TerracottaHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compass Show documentation
Show all versions of compass Show documentation
Compass Search Engine Framework
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