クラス JdbcEventPublicationRepository
java.lang.ObjectSE
org.springframework.modulith.events.jdbc.JdbcEventPublicationRepository
- 実装済みのインターフェース一覧:
Aware、BeanClassLoaderAware、EventPublicationRepository
class JdbcEventPublicationRepository
extends ObjectSE
implements EventPublicationRepository, BeanClassLoaderAware
TargetEventPublication を保存するための JDBC ベースのリポジトリ。- 作成者:
- Dmitry Belyaev, Bj ö rn Kieling, Oliver Drotbohm, Raed Ben Hamouda, Cora Iberkleid
ネストされたクラスの概要
インターフェース org.springframework.modulith.events.core.EventPublicationRepository から継承されたネストクラス / インターフェース
EventPublicationRepository.FailedCriteriaコンストラクター概要
コンストラクターコンストラクター説明JdbcEventPublicationRepository(JdbcOperations operations, EventSerializer serializer, JdbcRepositorySettings settings) 指定されたJdbcOperations、EventSerializer、DatabaseType、JdbcConfigurationPropertiesに対して新しいJdbcEventPublicationRepositoryを作成します。方法の概要
修飾子と型メソッド説明intcountByStatus(EventPublication.Status status) 指定されたステータスのEventPublicationの数を返します。create(TargetEventPublication publication) 指定されたTargetEventPublicationを永続化します。voidすでに完了としてマークされているパブリケーションをすべて削除します。void完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。voiddeletePublications(ListSE<UUIDSE> identifiers) 指定された識別子を持つすべてのパブリケーションを削除します。findByStatus(EventPublication.Status status) 指定されたEventPublication.Statusを持つすべてのTargetEventPublicationを返します。現在システム内で見つかった完了したイベントパブリケーションをすべて返します。まだ完了していないすべてのTargetEventPublicationを返します。findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) 指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublicationを返します。完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。voidmarkCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) 指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。voidmarkCompleted(UUIDSE identifier, InstantSE completionDate) 指定された識別子を持つ出版物を、指定されたInstantSE で完了したものとしてマークします。voidsetBeanClassLoader(ClassLoaderSE classLoader) クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.modulith.events.core.EventPublicationRepository から継承されたメソッド
findFailedPublications, markCompleted, markFailed, markProcessing, markResubmitted
コンストラクターの詳細
JdbcEventPublicationRepository
public JdbcEventPublicationRepository(JdbcOperations operations, EventSerializer serializer, JdbcRepositorySettings settings) 指定されたJdbcOperations、EventSerializer、DatabaseType、JdbcConfigurationPropertiesに対して新しいJdbcEventPublicationRepositoryを作成します。- パラメーター:
operations- null であってはなりません。serializer- null であってはなりません。settings- null であってはなりません。
方法の詳細
setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAware内のsetBeanClassLoader
create
インターフェースからコピーされた説明:EventPublicationRepository指定されたTargetEventPublicationを永続化します。- 次で指定:
- インターフェース
EventPublicationRepository内のcreate - パラメーター:
publication- null であってはなりません。- 戻り値:
- null になることはありません。
markCompleted
@Transactional public void markCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) インターフェースからコピーされた説明:EventPublicationRepository指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkCompleted - パラメーター:
event- null であってはなりません。identifier- null であってはなりません。completionDate- null であってはなりません。- 関連事項:
markCompleted
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つ出版物を、指定されたInstantSE で完了したものとしてマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkCompleted - パラメーター:
identifier- null であってはなりません。completionDate- null であってはなりません。- 関連事項:
findIncompletePublicationsByEventAndTargetIdentifier
@Transactional(readOnly=true) public OptionalSE<TargetEventPublication> findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) インターフェースからコピーされた説明:EventPublicationRepository指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublicationsByEventAndTargetIdentifier - パラメーター:
event- null であってはなりません。targetIdentifier- null であってはなりません。- 戻り値:
- null になることはありません。
findCompletedPublications
インターフェースからコピーされた説明:EventPublicationRepository現在システム内で見つかった完了したイベントパブリケーションをすべて返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindCompletedPublications - 戻り値:
- null になることはありません。
findIncompletePublications
インターフェースからコピーされた説明:EventPublicationRepositoryまだ完了していないすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublications - 戻り値:
- null になることはありません。
findIncompletePublicationsPublishedBefore
インターフェースからコピーされた説明:EventPublicationRepository完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublicationsPublishedBefore - パラメーター:
instant- null であってはなりません。- 戻り値:
- null になることはありません。
deletePublications
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つすべてのパブリケーションを削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeletePublications - パラメーター:
identifiers- null であってはなりません。
deleteCompletedPublications
public void deleteCompletedPublications()インターフェースからコピーされた説明:EventPublicationRepositoryすでに完了としてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublications
deleteCompletedPublicationsBefore
インターフェースからコピーされた説明:EventPublicationRepository完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublicationsBefore - パラメーター:
instant- null であってはなりません。
findByStatus
インターフェースからコピーされた説明:EventPublicationRepository指定されたEventPublication.Statusを持つすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindByStatus - パラメーター:
status- null であってはなりません。- 戻り値:
- null になることはありません。
countByStatus
インターフェースからコピーされた説明:EventPublicationRepository指定されたステータスのEventPublicationの数を返します。- 次で指定:
- インターフェース
EventPublicationRepository内のcountByStatus - パラメーター:
status- null であってはなりません。- 戻り値:
- 否定的であってはならない