Java LinkedBlockingQueue newLinkedBlockingQeque(int capacity)

Here you can find the source of newLinkedBlockingQeque(int capacity)

Description

new Linked Blocking Qeque

License

Apache License

Declaration

public static <E> LinkedBlockingQueue<E> newLinkedBlockingQeque(int capacity) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.LinkedBlockingQueue;

public class Main {

    public static <E> LinkedBlockingQueue<E> newLinkedBlockingQeque(int capacity) {
        return new LinkedBlockingQueue<E>(capacity);
    }/*from w w  w.j  av a 2s.  c o  m*/
}

Related

  1. createLinkedBlockingQueue(Collection collection)
  2. getCollection(Class collectionType)
  3. getCollection(Class propertyType)
  4. newLinkedBlockingQueue(final Collection c)