diff --git a/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoderPool.java b/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoderPool.java new file mode 100644 index 0000000000..744878b6aa --- /dev/null +++ b/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoderPool.java @@ -0,0 +1,45 @@ +package org.jlab.detector.decode; + +import java.util.concurrent.ArrayBlockingQueue; + +/** + * + * @author baltzell + */ +public class CLASDecoderPool { + + ArrayBlockingQueue pool; + + int sharedConstantsManagers = 64; + + public CLASDecoderPool(int size, String variation, String timestamp) { + + pool = new ArrayBlockingQueue<>(size); + + CLASDecoder d0 = null; + + for (int i=0; i pool; - int constantsShared = 64; + CLASDecoderPool pool; public DecoderEngine() { schema = new SchemaFactory(); @@ -58,21 +56,9 @@ public void destroy() {} @Override public EngineData configure(EngineData ed) { JSONObject json = new JSONObject(ed.getData()); - pool = new ArrayBlockingQueue<>(POOL_SIZE); - CLASDecoder d0 = null; - for (int i=0; i