|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectnablarch.fw.invoker.AbstractExecutorServiceFactory
@Published(tag="architect") public abstract class AbstractExecutorServiceFactory
ExecutorServiceFactoryの実装をサポートする抽象クラス。
ExecutorServiceFactoryの実装クラスで共通となる処理を提供する。
| フィールドの概要 | |
|---|---|
static long |
DEFAULT_TIMEOUT_SECOND
デフォルトのタイムアウト(秒) |
protected java.util.concurrent.ExecutorService |
executorService
ExecutorService |
protected long |
timeoutSecond
タイムアウト(秒) |
| コンストラクタの概要 | |
|---|---|
AbstractExecutorServiceFactory()
|
|
| メソッドの概要 | |
|---|---|
protected boolean |
awaitTermination()
スレッド終了を待つ。 |
protected abstract java.util.concurrent.ExecutorService |
createExecutorService()
ExecutorServiceインスタンスを生成する。 |
java.util.concurrent.ExecutorService |
getExecutorService()
ExecutorServiceを取得する。 |
void |
initialize()
|
protected boolean |
needsShutdown()
シャットダウン処理を行う必要があるかどうか判定する。 |
void |
setTimeoutSecond(long timeoutSecond)
スレッドの停止を待機する時間(秒)を設定する。 |
void |
shutdownService()
シャットダウンを行う。 |
void |
startShutdownService()
シャットダウンを開始する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final long DEFAULT_TIMEOUT_SECOND
protected long timeoutSecond
protected java.util.concurrent.ExecutorService executorService
ExecutorService
| コンストラクタの詳細 |
|---|
public AbstractExecutorServiceFactory()
| メソッドの詳細 |
|---|
public void initialize()
nablarch.core.repository.initialization.Initializable 内の initializeprotected abstract java.util.concurrent.ExecutorService createExecutorService()
ExecutorServiceインスタンスを生成する。
サブクラスにて、インスタンスを生成、必要な設定を行うこと。
ExecutorServiceインスタンスpublic java.util.concurrent.ExecutorService getExecutorService()
ExecutorServiceFactory の記述:ExecutorServiceを取得する。
ExecutorServiceFactory 内の getExecutorServiceExecutorServicepublic void startShutdownService()
ExecutorServiceFactory の記述:
ExecutorServiceFactory 内の startShutdownServicepublic void shutdownService()
ExecutorServiceFactory の記述:
ExecutorServiceFactory 内の shutdownService
protected boolean awaitTermination()
throws java.lang.InterruptedException
ExecutorService.awaitTermination(long, TimeUnit)の戻り値
java.lang.InterruptedException - 割り込みが発生した場合protected boolean needsShutdown()
public void setTimeoutSecond(long timeoutSecond)
timeoutSecond - スレッドの停止を待機する時間
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||