クラス 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コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidvoiddestroy()intgetPhase()booleanfinal booleanvoidrun()提供されたtimeoutより古いメッセージグループをすべて期限切れにします。voidsetAutoStartup(boolean autoStartup) voidsetExpireOnDestroy(boolean expireOnDestroy) このコンポーネントが破棄されたときにストアを期限切れにする必要があることを示すフラグ(つまりvoidsetMessageGroupStore(MessageGroupStore messageGroupStore) 他の構成に従って期限切れになるメッセージグループストア。voidsetPhase(int phase) voidsetTimeout(long timeout) ミリ秒単位のタイムアウト(デフォルトは -1)。final voidstart()voidstop()クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable, 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)