JavaTM 2 Platform
Standard Ed. 5.0

ÀÎÅÍÆäÀ̽º
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 ¸Þ¼­µåÀÇ thread È£Ãâ·Î °ÅºÎµÈ ŽºÅ©¸¦ Á÷Á¢ ½ÇÇàÇÑ´Ù, °ÅºÎµÈ ŽºÅ©ÀÇ Çڵ鷯.
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 constructor¡¡ ¡¡
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)
          ÁöÁ¤µÈ Ãʱâ ÆĶó¹ÌÅ͸¦ »ç¿ëÇØ, »õ·Î¿î ThreadPoolExecutor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
ThreadPoolExecutor (int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit  unit, BlockingQueue <Runnable > workQueue, ThreadFactory  threadFactory, RejectedExecutionHandler  handler)
          ÁöÁ¤µÈ Ãʱâ ÆĶó¹ÌÅ͸¦ »ç¿ëÇØ, »õ·Î¿î ThreadPoolExecutor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 


JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.