インターフェース EventPublicationRepository
- すべての既知の実装クラス:
JdbcEventPublicationRepository
、JpaEventPublicationRepository
、MongoDbEventPublicationRepository
、Neo4jEventPublicationRepository
public interface EventPublicationRepository
TargetEventPublication
を保存するリポジトリ。- 作成者:
- Bj ö rn Kieling, Dmitry Belyaev, Oliver Drotbohm
メソッドのサマリー
修飾子と型メソッド説明create
(TargetEventPublication publication) 指定されたTargetEventPublication
を永続化します。void
すでに完了としてマークされているパブリケーションをすべて削除します。void
完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。void
deletePublications
(ListSE<UUIDSE> identifiers) 指定された識別子を持つすべてのパブリケーションを削除します。default ListSE<TargetEventPublication>
現在システム内で見つかった完了したイベントパブリケーションをすべて返します。まだ完了していないすべてのTargetEventPublication
を返します。findIncompletePublicationsByEventAndTargetIdentifier
(ObjectSE event, PublicationTargetIdentifier targetIdentifier) 指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublication
を返します。完了しておらず、指定されたInstant
SE より前に公開されたすべてのTargetEventPublication
を返します。void
markCompleted
(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) 指定されたイベントおよびPublicationTargetIdentifier
のパブリケーションが指定されたInstant
SE で完了するようにマークします。default void
markCompleted
(TargetEventPublication publication, InstantSE completionDate) 指定されたTargetEventPublication
を完了としてマークします。
メソッドの詳細
create
指定されたTargetEventPublication
を永続化します。- パラメーター:
publication
- null であってはなりません。- 戻り値:
- null になることはありません。
markCompleted
指定されたTargetEventPublication
を完了としてマークします。- パラメーター:
publication
- null であってはなりません。completionDate
- null であってはなりません。
markCompleted
void markCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) 指定されたイベントおよびPublicationTargetIdentifier
のパブリケーションが指定されたInstant
SE で完了するようにマークします。- パラメーター:
event
- null であってはなりません。identifier
- null であってはなりません。completionDate
- null であってはなりません。
findIncompletePublications
ListSE<TargetEventPublication> findIncompletePublications()まだ完了していないすべてのTargetEventPublication
を返します。- 戻り値:
- null になることはありません。
findIncompletePublicationsPublishedBefore
完了しておらず、指定されたInstant
SE より前に公開されたすべてのTargetEventPublication
を返します。- パラメーター:
instant
- null であってはなりません。- 戻り値:
- null になることはありません。
- 導入:
- 1.1
findIncompletePublicationsByEventAndTargetIdentifier
OptionalSE<TargetEventPublication> findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) 指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublication
を返します。- パラメーター:
event
- null であってはなりません。targetIdentifier
- null であってはなりません。- 戻り値:
- null になることはありません。
findCompletedPublications
現在システム内で見つかった完了したイベントパブリケーションをすべて返します。- 戻り値:
- null になることはありません。
- 導入:
- 1.1.2
deletePublications
指定された識別子を持つすべてのパブリケーションを削除します。- パラメーター:
identifiers
- null であってはなりません。- 導入:
- 1.1
deleteCompletedPublications
void deleteCompletedPublications()すでに完了としてマークされているパブリケーションをすべて削除します。deleteCompletedPublicationsBefore
完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。- パラメーター:
instant
- null であってはなりません。