Class AsyncCommandDefinition
java.lang.Object
org.iplass.mtp.command.async.definition.AsyncCommandDefinition
- All Implemented Interfaces:
Serializable,Definition
非同期実行Commandの定義。
定義した非同期実行CommandはCommandInvokerを利用して呼び出し可能。
非同期処理自体は、
AsyncTaskManager経由で実行される。- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription非同期実行するCommandの設定概要を取得します。表示名を取得します。非同期実行時の例外処理モード非同期処理実行時のgroupingKeyを利用する場合、 AsyncRequestContextのattributeにそのキーをセットする。 その際の、attribute名。getName()名前を取得します。getQueue()非同期処理用のキューvoidsetCommandConfig(CommandConfig commandConfig) 非同期実行するCommandの設定をセット。voidsetDescription(String description) 概要を設定します。voidsetDisplayName(String displayName) 表示名を設定します。voidsetExceptionHandlingMode(ExceptionHandlingMode exceptionHandlingMode) 非同期実行時の例外処理モードを設定。voidsetGroupingKeyAttributeName(String groupingKeyAttributeName) 非同期処理実行時のgroupingKeyを利用する場合、 AsyncRequestContextのattributeにそのキーをセットする。 その際の、attribute名を指定する。void名前を設定します。void非同期処理用のキューを設定
-
Constructor Details
-
AsyncCommandDefinition
public AsyncCommandDefinition()
-
-
Method Details
-
getName
Description copied from interface:Definition名前を取得します。- Specified by:
getNamein interfaceDefinition- Returns:
- 名前
-
setName
Description copied from interface:Definition名前を設定します。- Specified by:
setNamein interfaceDefinition- Parameters:
name- 名前
-
getDisplayName
Description copied from interface:Definition表示名を取得します。- Specified by:
getDisplayNamein interfaceDefinition- Returns:
- 表示名
-
setDisplayName
Description copied from interface:Definition表示名を設定します。- Specified by:
setDisplayNamein interfaceDefinition- Parameters:
displayName- 表示名
-
getDescription
Description copied from interface:Definition概要を取得します。- Specified by:
getDescriptionin interfaceDefinition- Returns:
- 概要
-
setDescription
Description copied from interface:Definition概要を設定します。- Specified by:
setDescriptionin interfaceDefinition- Parameters:
description- 概要
-
getQueue
非同期処理用のキュー- Returns:
-
setQueue
非同期処理用のキューを設定- Parameters:
queue- キュー名- See Also:
-
getGroupingKeyAttributeName
非同期処理実行時のgroupingKeyを利用する場合、 AsyncRequestContextのattributeにそのキーをセットする。 その際の、attribute名。- Returns:
-
setGroupingKeyAttributeName
非同期処理実行時のgroupingKeyを利用する場合、 AsyncRequestContextのattributeにそのキーをセットする。 その際の、attribute名を指定する。- Parameters:
groupingKeyAttributeName-- See Also:
-
getExceptionHandlingMode
非同期実行時の例外処理モード- Returns:
-
setExceptionHandlingMode
非同期実行時の例外処理モードを設定。- Parameters:
exceptionHandlingMode-- See Also:
-
getCommandConfig
非同期実行するCommandの設定- Returns:
-
setCommandConfig
非同期実行するCommandの設定をセット。- Parameters:
commandConfig-
-