インターフェース EventPublicationRepository

すべての既知の実装クラス:
JdbcEventPublicationRepositoryJpaEventPublicationRepositoryMongoDbEventPublicationRepositoryNeo4jEventPublicationRepository

public interface EventPublicationRepository
TargetEventPublication を保存するリポジトリ。
作成者:
Bj ö rn Kieling, Dmitry Belyaev, Oliver Drotbohm
  • メソッドの詳細

    • create

      指定された TargetEventPublication を永続化します。
      パラメーター:
      publication - null であってはなりません。
      戻り値:
      null になることはありません。
    • markCompleted

      default void markCompleted(TargetEventPublication publication, InstantSE completionDate)
      指定された TargetEventPublication を完了としてマークします。
      パラメーター:
      publication - null であってはなりません。
      completionDate - null であってはなりません。
    • markCompleted

      void markCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate)
      指定されたイベントおよび PublicationTargetIdentifier のパブリケーションが指定された InstantSE で完了するようにマークします。
      パラメーター:
      event - null であってはなりません。
      identifier - null であってはなりません。
      completionDate - null であってはなりません。
    • findIncompletePublications

      ListSE<TargetEventPublication> findIncompletePublications()
      まだ完了していないすべての TargetEventPublication を返します。
      戻り値:
      null になることはありません。
    • findIncompletePublicationsPublishedBefore

      ListSE<TargetEventPublication> findIncompletePublicationsPublishedBefore(InstantSE instant)
      完了しておらず、指定された InstantSE より前に公開されたすべての TargetEventPublication を返します。
      パラメーター:
      instant - null であってはなりません。
      戻り値:
      null になることはありません。
      導入:
      1.1
    • findIncompletePublicationsByEventAndTargetIdentifier

      OptionalSE<TargetEventPublication> findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier)
      指定された直列化されたイベントおよびリスナー ID の不完全な TargetEventPublication を返します。
      パラメーター:
      event - null であってはなりません。
      targetIdentifier - null であってはなりません。
      戻り値:
      null になることはありません。
    • findCompletedPublications

      default ListSE<TargetEventPublication> findCompletedPublications()
      現在システム内で見つかった完了したイベントパブリケーションをすべて返します。
      戻り値:
      null になることはありません。
      導入:
      1.1.2
    • deletePublications

      void deletePublications(ListSE<UUIDSE> identifiers)
      指定された識別子を持つすべてのパブリケーションを削除します。
      パラメーター:
      identifiers - null であってはなりません。
      導入:
      1.1
    • deleteCompletedPublications

      void deleteCompletedPublications()
      すでに完了としてマークされているパブリケーションをすべて削除します。
    • deleteCompletedPublicationsBefore

      void deleteCompletedPublicationsBefore(InstantSE instant)
      完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。
      パラメーター:
      instant - null であってはなりません。