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