クラス MongoDbEventPublicationRepository
java.lang.ObjectSE
org.springframework.modulith.events.mongodb.MongoDbEventPublicationRepository
- 実装済みのインターフェース一覧:
EventPublicationRepository
@Transactional
class MongoDbEventPublicationRepository
extends ObjectSE
implements EventPublicationRepository
MongoDB に
TargetEventPublication を保存するリポジトリ。- 作成者:
- Bj ö rn Kieling, Dmitry Belyaev, Oliver Drotbohm
コンストラクター概要
コンストラクターコンストラクター説明MongoDbEventPublicationRepository(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) 指定されたMongoTemplateの新しいMongoDbEventPublicationRepositoryを作成します。方法の概要
修飾子と型メソッド説明create(TargetEventPublication publication) 指定されたTargetEventPublicationを永続化します。voidすでに完了としてマークされているパブリケーションをすべて削除します。void完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。voiddeletePublications(ListSE<UUIDSE> identifiers) 指定された識別子を持つすべてのパブリケーションを削除します。現在システム内で見つかった完了したイベントパブリケーションをすべて返します。まだ完了していないすべてのTargetEventPublicationを返します。findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) 指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublicationを返します。完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。voidmarkCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) 指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.modulith.events.core.EventPublicationRepository から継承されたメソッド
markCompleted
コンストラクターの詳細
MongoDbEventPublicationRepository
public MongoDbEventPublicationRepository(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) 指定されたMongoTemplateの新しいMongoDbEventPublicationRepositoryを作成します。- パラメーター:
mongoTemplate- null であってはなりません。
方法の詳細
create
インターフェースからコピーされた説明:EventPublicationRepository指定されたTargetEventPublicationを永続化します。- 次で指定:
- インターフェース
EventPublicationRepository内のcreate - パラメーター:
publication- null であってはなりません。- 戻り値:
- null になることはありません。
markCompleted
public void markCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) インターフェースからコピーされた説明:EventPublicationRepository指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkCompleted - パラメーター:
event- null であってはなりません。identifier- null であってはなりません。completionDate- null であってはなりません。
findIncompletePublications
インターフェースからコピーされた説明:EventPublicationRepositoryまだ完了していないすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublications - 戻り値:
- null になることはありません。
findIncompletePublicationsPublishedBefore
@Transactional(readOnly=true) public ListSE<TargetEventPublication> findIncompletePublicationsPublishedBefore(InstantSE instant) インターフェースからコピーされた説明:EventPublicationRepository完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublicationsPublishedBefore - パラメーター:
instant- null であってはなりません。- 戻り値:
- 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 になることはありません。
deletePublications
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つすべてのパブリケーションを削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeletePublications - パラメーター:
identifiers- null であってはなりません。
deleteCompletedPublications
public void deleteCompletedPublications()インターフェースからコピーされた説明:EventPublicationRepositoryすでに完了としてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublications
deleteCompletedPublicationsBefore
インターフェースからコピーされた説明:EventPublicationRepository完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublicationsBefore - パラメーター:
instant- null であってはなりません。