クラス MessageGroupStoreReaper
java.lang.ObjectSE
org.springframework.integration.store.MessageGroupStoreReaper
- 実装されたすべてのインターフェース:
RunnableSE
、DisposableBean
、InitializingBean
、Lifecycle
、Phased
、SmartLifecycle
public class MessageGroupStoreReaper
extends ObjectSE
implements RunnableSE, DisposableBean, InitializingBean, SmartLifecycle
MessageGroupStore
内の MessageGroup
インスタンスの明示的な時間指定有効期限を許可する便利な構成可能コンポーネント。このコンポーネントは、リモートまたは時限実行に役立つ引数なしの run()
メソッドと、シャットダウン時にオプションで呼び出すことができる destroy()
メソッドを提供します。- 作成者:
- Dave Syer, Dave Turanski, Artem Bilan
フィールドのサマリー
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
void
destroy()
int
getPhase()
boolean
final boolean
void
run()
提供されたtimeout
より古いメッセージグループをすべて期限切れにします。void
setAutoStartup
(boolean autoStartup) void
setExpireOnDestroy
(boolean expireOnDestroy) このコンポーネントが破棄されたときにストアを期限切れにする必要があることを示すフラグ(つまりvoid
setMessageGroupStore
(MessageGroupStore messageGroupStore) 他の構成に従って期限切れになるメッセージグループストア。void
setPhase
(int phase) void
setTimeout
(long timeout) ミリ秒単位のタイムアウト(デフォルトは -1)。final void
start()
void
stop()
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
stop
コンストラクターの詳細
MessageGroupStoreReaper
MessageGroupStoreReaper
public MessageGroupStoreReaper()
メソッドの詳細
setExpireOnDestroy
public void setExpireOnDestroy(boolean expireOnDestroy) このコンポーネントが破棄されたとき(つまり、通常、それを囲むApplicationContext
が閉じられたとき)にストアを期限切れにする必要があることを示すフラグ。- パラメーター:
expireOnDestroy
- 設定するフラグ値
setTimeout
public void setTimeout(long timeout) ミリ秒単位のタイムアウト(デフォルトは -1)。負の場合、タイムアウトするグループはありません。ゼロより大きい場合、このコンポーネントがrun()
の場合、その値より古いすべてのグループが期限切れになります。- パラメーター:
timeout
- 設定するタイムアウト
setMessageGroupStore
他の構成に従って期限切れになるメッセージグループストア。- パラメーター:
messageGroupStore
- 設定するMessageGroupStore
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBean
のafterPropertiesSet
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBean
のdestroy
run
public void run()提供されたtimeout
より古いメッセージグループをすべて期限切れにします。通常、このメソッドはスケジュールされたタスクによって実行されます。- 次で指定:
- インターフェース
RunnableSE
のrun
start
stop
isRunning
getPhase
public int getPhase()- 次で指定:
- インターフェース
Phased
のgetPhase
- 次で指定:
- インターフェース
SmartLifecycle
のgetPhase
setPhase
public void setPhase(int phase) isAutoStartup
public boolean isAutoStartup()- 次で指定:
- インターフェース
SmartLifecycle
のisAutoStartup
setAutoStartup
public void setAutoStartup(boolean autoStartup)