クラス 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
を作成します。メソッドのサマリー
修飾子と型メソッド説明void
protected CollectionSE<ApplicationListener<?>>
getApplicationListeners
(ApplicationEvent event, ResolvableType eventType) void
multicastEvent
(ApplicationEvent event) void
multicastEvent
(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
-Predicate
SE を使用して、イベントを再送信するイベントパブリケーションを選択します。
resubmitIncompletePublicationsOlderThan
インターフェースからコピーされた説明:IncompleteEventPublications
元の発行日から一定の期間を超えた不完全なEventPublication
が登録されているイベントの再送信をトリガーします。- 次で指定:
- インターフェース
IncompleteEventPublications
のresubmitIncompletePublicationsOlderThan
- パラメーター:
duration
- null であってはなりません。
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingleton
のafterSingletonsInstantiated