JavaTM Platform
Standard Ed. 6

java.util.concurrent
클래스 ThreadPoolExecutor.CallerRunsPolicy

java.lang.Object 
  상위를 확장 java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
모든 구현된 인터페이스:
RejectedExecutionHandler
포함되어 있는 클래스:
ThreadPoolExecutor


public static class ThreadPoolExecutor.CallerRunsPolicy
extends Object
implements RejectedExecutionHandler

executor 가 종료 하고 있지 않는 경우에,execute 메소드의 호출로 거부된 태스크를 직접 실행한다, 거부된 태스크의 핸들러입니다. 종료 하고 있는 경우, 태스크는 파기됩니다.


생성자 의 개요
ThreadPoolExecutor.CallerRunsPolicy ()
          CallerRunsPolicy 를 작성합니다.
 
메소드의 개요
 void rejectedExecution (Runnable  r, ThreadPoolExecutor  e)
          executor 가 종료 하고 있지 않는 경우에, 호출측의 thread로 태스크 r 를 실행합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

ThreadPoolExecutor.CallerRunsPolicy

public ThreadPoolExecutor.CallerRunsPolicy()
CallerRunsPolicy 를 작성합니다.

메소드의 상세

rejectedExecution

public void rejectedExecution(Runnable  r,
                              ThreadPoolExecutor  e)
executor 가 종료 하고 있지 않는 경우에, 호출측의 thread로 태스크 r 를 실행합니다. 종료 하고 있는 경우, 태스크는 파기됩니다.

정의:
인터페이스 RejectedExecutionHandler 내의 rejectedExecution
파라미터:
r - 실행되는 것을 요구된 실행 가능한 태스크
e - 이 태스크의 실행을 시도하는 executor

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 도 참조해 주세요.