Java ArrayBlockingQueue createUniqueHelperParamQueue(String uniqueQueueName, int size)

Here you can find the source of createUniqueHelperParamQueue(String uniqueQueueName, int size)

Description

create Unique Helper Param Queue

License

GNU General Public License

Declaration

public static void createUniqueHelperParamQueue(String uniqueQueueName,
        int size) 

Method Source Code

//package com.java2s;
/**/*  w w  w.j  a v  a  2  s  . c om*/
 * Helper???????????????????????????.<br>
 *
 * @author T.Okuyama
 * @license GPL(Lv3)
 */

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ConcurrentHashMap;

public class Main {
    private static ConcurrentHashMap serviceParameterQueueMap = new ConcurrentHashMap(
            1024, 1000, 512);

    public static void createUniqueHelperParamQueue(String uniqueQueueName,
            int size) {
        serviceParameterQueueMap.put(uniqueQueueName,
                new ArrayBlockingQueue(size));
    }
}

Related

  1. getArrayBlockingQueue(final Object o, final Class clazz, final int capacity)
  2. getParameterQueueSize(String queueName)
  3. newArrayBlockingQueue()
  4. newArrayBlockingQueue(final int capacity)