|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
Àü ´ÙÀ½ | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ |
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)
¾È ¹Ù¿îµå Çü½ÄÀÇ Å¥¾øÀÌ µ¿ÀÛÇÏ´Â ´ÜÀÏÀÇ ¿öÅ©½º ·¹µå¸¦ »ç¿ëÇÏ´Â Executor¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static ScheduledExecutorService |
Executors. newSingleThreadScheduledExecutor (ThreadFactory threadFactory)
ÁöÁ¤µÈ Áö¿¬ ½Ã°£ ÈÄ, ¶Ç´Â ÁÖ±âÀûÀ¸·Î Ä¿¸àµåÀÇ ½ÇÇàÀ» ½ºÄÉÁÙ °¡´ÉÇÑ, ´ÜÀÏ threadÀÇ executor¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
void |
ThreadPoolExecutor. setThreadFactory (ThreadFactory threadFactory)
»õ·Î¿î threadÀÇ ÀÛ¼º¿¡ »ç¿ëÇÏ´Â thread ÆÑÅ丮¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
ThreadFactory ÇüÀÇ ÆÄ¶ó¹ÌÅ͸¦ °¡Áö´Â java.util.concurrent constructor¡¡ ¡¡ | |
---|---|
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 2 Platform Standard Ed. 5.0 |
|||||||||
Àü ´ÙÀ½ | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.