JavaTM Platform
Standard Ed. 6

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

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

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

ThreadFactory 을 돌려주는 java.util.concurrent 의 메소드
static ThreadFactory Executors. defaultThreadFactory ()
          신규 thread의 작성에 사용하는 디폴트의 thread 팩토리를 돌려줍니다.
 ThreadFactory ThreadPoolExecutor. getThreadFactory ()
          새로운 thread의 작성에 사용하는 thread 팩토리를 돌려줍니다.
static ThreadFactory Executors. privilegedThreadFactory ()
          현재의 thread와 같은 액세스권을 가지는 신규 thread를 작성하기 위해서 사용하는 thread 팩토리를 돌려줍니다.
 

ThreadFactory 형의 파라미터를 가지는 java.util.concurrent 의 메소드
static ExecutorService Executors. newCachedThreadPool (ThreadFactory  threadFactory)
          필요하게 응해 신규 thread를 작성하는 thread 풀을 작성합니다만, 이용 가능한 경우에는 이전에 구축된 thread를 재사용합니다.
static ExecutorService Executors. newFixedThreadPool (int nThreads, ThreadFactory  threadFactory)
          공유 안 바운드 형식의 큐없이 동작하는, 고정수의 thread를 재사용하는 thread 풀을 작성합니다.
static ScheduledExecutorService Executors. newScheduledThreadPool (int corePoolSize, ThreadFactory  threadFactory)
          지정된 지연 시간 후, 또는 주기적으로 커멘드의 실행을 스케줄 할 수 있는, thread 풀을 작성합니다.
static ExecutorService Executors. newSingleThreadExecutor (ThreadFactory  threadFactory)
          안 바운드 형식의 큐없이 동작하는, 단일의 워커 thread를 사용하는 executor 를 작성합니다.
static ScheduledExecutorService Executors. newSingleThreadScheduledExecutor (ThreadFactory  threadFactory)
          지정된 지연 시간 후, 또는 주기적으로 커멘드의 실행을 스케줄 할 수 있는, 단일 thread의 executor 를 작성합니다.
 void ThreadPoolExecutor. setThreadFactory (ThreadFactory  threadFactory)
          새로운 thread의 작성에 사용하는 thread 팩토리를 설정합니다.
 

ThreadFactory 형의 파라미터를 가지는 java.util.concurrent 의 생성자
ScheduledThreadPoolExecutor (int corePoolSize, ThreadFactory  threadFactory)
          지정된 초기 파라미터를 사용해, 새로운 ScheduledThreadPoolExecutor 를 작성합니다.
ScheduledThreadPoolExecutor (int corePoolSize, ThreadFactory  threadFactory, RejectedExecutionHandler  handler)
          지정된 초기 파라미터를 사용해, 새로운 ScheduledThreadPoolExecutor 를 작성합니다.
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 도 참조해 주세요.