|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface RejectedExecutionHandler
ThreadPoolExecutor ·Î ½ÇÇà ºÒ°¡´ÉÇÑ Å½ºÅ©ÀÇ Çڵ鷯
| ¸Þ¼µå °³¿ä | |
|---|---|
void |
rejectedExecution (Runnable r,
ThreadPoolExecutor executor)
execute°¡ ŽºÅ©¸¦ ¹Þ¾Æµé¿©ÁöÁö ¾Ê´Â °æ¿ì¿¡ ThreadPoolExecutor ·ÎºÎÅÍ È£ÃâÇÒ ¼ö ÀÖ´Â ¸Þ¼µå. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
void rejectedExecution(Runnable r,
ThreadPoolExecutor executor)
ThreadPoolExecutor ·ÎºÎÅÍ È£ÃâÇÒ ¼ö ÀÖ´Â ¸Þ¼µå. À̰ÍÀº Á¦ÇÑÀ» ÃʰúÇ߱⠶§¹®¿¡ ÀÌ¿ë °¡´ÉÇÑ thread ¶Ç´Â Å¥ ½½·ÔÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì, ¶Ç´Â Executor
¼Ë´Ù¿î½Ã¿¡ ¹ß»ýÇÕ´Ï´Ù.
´ëü ¼ö´ÜÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì, ¸Þ¼µå´Â üũµÇÁö ¾Ê´Â RejectedExecutionException¸¦
Throw ÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. À̰ÍÀº, execute
È£Ãâ Ãø¿¡ ¼Û½ÅµË´Ï´Ù.
r - ½ÇÇàÀÌ ¿ä±¸µÈ ½ÇÇà °¡´ÉÇÑ Å½ºÅ©executor - ÀÌ Å½ºÅ©ÀÇ ½ÇÇàÀ» ½ÃµµÇÏ´Â executor
RejectedExecutionException - ´ëó ¹æ¹ýÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.