クラス PersistentApplicationEventMulticaster
java.lang.ObjectSE
org.springframework.context.event.AbstractApplicationEventMulticaster
org.springframework.modulith.events.support.PersistentApplicationEventMulticaster
- 実装済みのインターフェース一覧:
Aware、BeanClassLoaderAware、BeanFactoryAware、SmartInitializingSingleton、ApplicationEventMulticaster、IncompleteEventPublications
public class PersistentApplicationEventMulticaster
extends AbstractApplicationEventMulticaster
implements IncompleteEventPublications, SmartInitializingSingleton
ApplicationEventMulticaster は EventPublication を EventPublicationRegistry に登録し、失敗する可能性のあるトランザクションイベントリスナーがアプリケーションの再起動時またはスケジュールによって再呼び出されるようになります。 再出版は afterSingletonsInstantiated() で処理され、EventPublicationRegistry で不完全な出版物がないかインスペクションされます。
- 作成者:
- Oliver Drotbohm
- 関連事項:
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明(package private) static classトランザクションイベントリスナーを操作するファーストクラスのコレクション。フィールド概要
フィールドコンストラクター概要
コンストラクターコンストラクター説明PersistentApplicationEventMulticaster(SupplierSE<EventPublicationRegistry> registry, SupplierSE<Environment> environment) 指定されたEventPublicationRegistryの新しいPersistentApplicationEventMulticasterを作成します。方法の概要
修飾子と型メソッド説明voidprotected CollectionSE<ApplicationListener<?>>getApplicationListeners(ApplicationEvent event, ResolvableType eventType) voidmulticastEvent(ApplicationEvent event) voidmulticastEvent(ApplicationEvent event, ResolvableType eventType) void不完全なEventPublicationが登録されているイベントの再送信をトリガーします。void元の発行日から一定の期間を超えた不完全なEventPublicationが登録されているイベントの再送信をトリガーします。クラス org.springframework.context.event.AbstractApplicationEventMulticaster から継承されたメソッド
addApplicationListener, addApplicationListenerBean, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, removeApplicationListenerBeans, removeApplicationListeners, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
フィールドの詳細
REPUBLISH_ON_RESTART
- 関連事項:
コンストラクターの詳細
PersistentApplicationEventMulticaster
public PersistentApplicationEventMulticaster(SupplierSE<EventPublicationRegistry> registry, SupplierSE<Environment> environment) 指定されたEventPublicationRegistryの新しいPersistentApplicationEventMulticasterを作成します。- パラメーター:
registry- null であってはなりません。environment- null であってはなりません。
方法の詳細
multicastEvent
- 次で指定:
- インターフェース
ApplicationEventMulticaster内のmulticastEvent
multicastEvent
- 次で指定:
- インターフェース
ApplicationEventMulticaster内のmulticastEvent
getApplicationListeners
protected CollectionSE<ApplicationListener<?>> getApplicationListeners(ApplicationEvent event, ResolvableType eventType) - オーバーライド:
- クラス
AbstractApplicationEventMulticasterのgetApplicationListeners
resubmitIncompletePublications
インターフェースからコピーされた説明:IncompleteEventPublications不完全なEventPublicationが登録されているイベントの再送信をトリガーします。これにより、不完全なイベントのパブリケーションがすべて具体化されることに注意してください。- 次で指定:
- インターフェース
IncompleteEventPublications内のresubmitIncompletePublications - パラメーター:
filter-PredicateSE を使用して、イベントを再送信するイベントパブリケーションを選択します。
resubmitIncompletePublicationsOlderThan
インターフェースからコピーされた説明:IncompleteEventPublications元の発行日から一定の期間を超えた不完全なEventPublicationが登録されているイベントの再送信をトリガーします。- 次で指定:
- インターフェース
IncompleteEventPublications内のresubmitIncompletePublicationsOlderThan - パラメーター:
duration- null であってはなりません。
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingleton内のafterSingletonsInstantiated