|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectnablarch.fw.invoker.AbstractExecutorServiceFactory
nablarch.fw.invoker.FixedExecutorServiceFactory
public class FixedExecutorServiceFactory
固定数のスレッドプールを使用するExecutorServiceを生成するクラス。
デフォルトでは、利用可能なCPU数(Runtime.availableProcessors())を2倍した数のスレッドを使用する。
Executors.newFixedThreadPool(int)| フィールドの概要 |
|---|
| クラス nablarch.fw.invoker.AbstractExecutorServiceFactory から継承されたフィールド |
|---|
DEFAULT_TIMEOUT_SECOND, executorService, timeoutSecond |
| コンストラクタの概要 | |
|---|---|
FixedExecutorServiceFactory()
|
|
| メソッドの概要 | |
|---|---|
protected java.util.concurrent.ExecutorService |
createExecutorService()
ExecutorServiceインスタンスを生成する。 |
void |
setThreadPoolSize(int threadPoolSize)
スレッドプールのサイズを設定する。 |
| クラス nablarch.fw.invoker.AbstractExecutorServiceFactory から継承されたメソッド |
|---|
awaitTermination, getExecutorService, initialize, needsShutdown, setTimeoutSecond, shutdownService, startShutdownService |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public FixedExecutorServiceFactory()
| メソッドの詳細 |
|---|
protected java.util.concurrent.ExecutorService createExecutorService()
AbstractExecutorServiceFactory の記述:ExecutorServiceインスタンスを生成する。
サブクラスにて、インスタンスを生成、必要な設定を行うこと。
AbstractExecutorServiceFactory 内の createExecutorServiceExecutorServiceインスタンスpublic void setThreadPoolSize(int threadPoolSize)
threadPoolSize - スレッドプールのサイズ
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||