JavaTM Platform
Standard Ed. 6

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

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

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

RejectedExecutionHandler 을 구현하고 있는 java.util.concurrent 의 클래스
static class ThreadPoolExecutor.AbortPolicy
          RejectedExecutionException 를 throw 하는 거부된 태스크의 핸들러입니다.
static class ThreadPoolExecutor.CallerRunsPolicy
          executor 가 종료 하고 있지 않는 경우에,execute 메소드의 호출로 거부된 태스크를 직접 실행한다, 거부된 태스크의 핸들러입니다.
static class ThreadPoolExecutor.DiscardOldestPolicy
          executor 가 종료 하고 있지 않는 경우에, 가장 낡은 미처리의 요구를 파기해 execute 를 재시행한다, 거부된 태스크의 핸들러입니다.
static class ThreadPoolExecutor.DiscardPolicy
          거부된 태스크를 통지없이 파기하는 거부된 태스크의 핸들러입니다.
 

RejectedExecutionHandler 를 돌려주는 java.util.concurrent 의 메소드
 RejectedExecutionHandler ThreadPoolExecutor. getRejectedExecutionHandler ()
          실행 가능하지 않은 태스크의 현재의 핸들러를 돌려줍니다.
 

RejectedExecutionHandler 형의 파라미터를 가지는 java.util.concurrent 의 메소드
 void ThreadPoolExecutor. setRejectedExecutionHandler (RejectedExecutionHandler  handler)
          실행 가능하지 않은 태스크의 새로운 핸들러를 설정합니다.
 

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