Here you can find the source of getParameterQueueSize(String queueName)
public static int getParameterQueueSize(String queueName) throws Exception
//package com.java2s; /**/*from ww w. ja v a 2s . c o m*/ * 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 int getParameterQueueSize(String queueName) throws Exception { int ret = -1; try { ret = ((ArrayBlockingQueue) serviceParameterQueueMap .get(queueName)).size(); } catch (Exception e) { e.printStackTrace(); throw e; } return ret; } }