Java Utililty Methods ArrayBlockingQueue

List of utility methods to do ArrayBlockingQueue

Description

The list of methods to do ArrayBlockingQueue are organized into topic(s).

Method

voidcreateUniqueHelperParamQueue(String uniqueQueueName, int size)
create Unique Helper Param Queue
serviceParameterQueueMap.put(uniqueQueueName, new ArrayBlockingQueue(size));
BlockingQueuegetArrayBlockingQueue(final Object o, final Class clazz, final int capacity)
Cast an object into a typed ArrayBlockingQueue .
final BlockingQueue<T> queue = new ArrayBlockingQueue<>(capacity);
queue(queue, o, clazz, true);
return queue;
intgetParameterQueueSize(String queueName)
get Parameter Queue Size
int ret = -1;
try {
    ret = ((ArrayBlockingQueue) serviceParameterQueueMap.get(queueName)).size();
} catch (Exception e) {
    e.printStackTrace();
    throw e;
return ret;
...
ArrayBlockingQueuenewArrayBlockingQueue()
new Array Blocking Queue
return newArrayBlockingQueue(null);
ArrayBlockingQueuenewArrayBlockingQueue(final int capacity)
new Array Blocking Queue
return new ArrayBlockingQueue<E>(capacity);
ArrayBlockingQueuenewArrayBlockingQueue(int capacity)
new Array Blocking Queue
return new ArrayBlockingQueue<E>(capacity);