JavaTM Platform
Standard Ed. 6

인터페이스
java.util.concurrent.BlockingQueue 의 사용

BlockingQueue 를 사용하고 있는 패키지
java.util.concurrent 병행 프로그래밍으로 자주(잘) 사용되는 유틸리티 클래스입니다.  
 

java.util.concurrent 에서의 BlockingQueue 의 사용
 

java.util.concurrent 에서의 BlockingQueue 의 서브 인터페이스
 interface BlockingDeque<E>
          요소의 취득시에 양단 큐가 빈 상태(empty)이 아니게 될 때까지 대기하거나 요소의 포함시에 양단 큐내에 빈 곳이 생길 때까지 대기하는 블록 조작을 추가로 지원하거나 하는 Deque 입니다.
 

BlockingQueue 을 구현하고 있는 java.util.concurrent 의 클래스
 class ArrayBlockingQueue<E>
          배열에 연동하는 바운드 형식블로킹 큐입니다.
 class DelayQueue<E extends Delayed>
          Delayed 요소의 안 바운드 형식블로킹 큐로, 지연 시간이 경과후에게만, 요소를 취득할 수 있습니다.
 class LinkedBlockingDeque<E>
          링크 노드에 근거하는, 임의의 바운드 형식블로킹 양단 큐입니다.
 class LinkedBlockingQueue<E>
          링크 노드에 근거하는, 임의의 바운드 형식블로킹 큐입니다.
 class PriorityBlockingQueue<E>
          PriorityQueue 클래스와 같은 순서부 룰을 사용해, 블록 하는 취득 오퍼레이션을 제공하는, 안 바운드 형식블로킹 큐입니다.
 class SynchronousQueue<E>
           각 삽입 오퍼레이션이 다른 thread에 의한 대응하는 삭제 오퍼레이션을 대기할 필요가 있는 ( 및 그 역의) 블로킹 큐 입니다.
 

BlockingQueue 을 돌려주는 java.util.concurrent 의 메소드
 BlockingQueue <Runnable > ThreadPoolExecutor. getQueue ()
          이 executor 로 사용하는 태스크 큐를 돌려줍니다.
 BlockingQueue <Runnable > ScheduledThreadPoolExecutor. getQueue ()
          이 executor 로 사용하는 태스크 큐를 돌려줍니다.
 

BlockingQueue 형의 파라미터를 가지는 java.util.concurrent 의 생성자
ExecutorCompletionService (Executor  executor, BlockingQueue <Future <V >> completionQueue)
          기본 태스크의 실행용으로 지정된 executor 를 사용해, 완료 큐로서 지정된 큐를 사용해, ExecutorCompletionService 를 작성합니다.
ThreadPoolExecutor (int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit  unit, BlockingQueue <Runnable > workQueue)
          지정된 초기 파라미터, 및 디폴트의 thread 팩토리라고 거부된 실행 핸들러를 사용해, 새로운 ThreadPoolExecutor 를 작성합니다.
ThreadPoolExecutor (int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit  unit, BlockingQueue <Runnable > workQueue, RejectedExecutionHandler  handler)
          지정된 초기 파라미터, 및 디폴트의 thread 팩토리를 사용해, 새로운 ThreadPoolExecutor 를 작성합니다.
ThreadPoolExecutor (int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit  unit, BlockingQueue <Runnable > workQueue, ThreadFactory  threadFactory)
          지정된 초기 파라미터, 및 디폴트의 거부된 실행 핸들러를 사용해, 새로운 ThreadPoolExecutor 를 작성합니다.
ThreadPoolExecutor (int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit  unit, BlockingQueue <Runnable > workQueue, ThreadFactory  threadFactory, RejectedExecutionHandler  handler)
          지정된 초기 파라미터를 사용해, 새로운 ThreadPoolExecutor 를 작성합니다.
 


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.