Interface CTEventListener


public interface CTEventListener
CT event listeners are used for extending change tracking behavior into additional types of storage. Examples include: file system, message bus, and search index.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onAfterCopy(long sourceCTCollectionId, long targetCTCollectionId)
    Called after copying the source CTCollection into the target CTCollection.
    default void
    onAfterPublish(long ctCollectionId)
    Called after checking conflicts and publishing the CTCollection.
    default void
    onBeforePublish(long ctCollectionId)
    Called before checking conflicts and publishing the CTCollection.
    default void
    onBeforeRemove(long ctCollectionId)
    Called before deleting a CTCollection.
  • Method Details

    • onAfterCopy

      default void onAfterCopy(long sourceCTCollectionId, long targetCTCollectionId) throws CTEventException
      Called after copying the source CTCollection into the target CTCollection.
      Parameters:
      sourceCTCollectionId - the change tracking collection ID of the source CTCollection
      targetCTCollectionId - the change tracking collection ID of the target CTCollection
      Throws:
      CTEventException - if a exception occurred
    • onAfterPublish

      default void onAfterPublish(long ctCollectionId) throws CTEventException
      Called after checking conflicts and publishing the CTCollection.
      Parameters:
      ctCollectionId - the collection ID of the CTCollection being published
      Throws:
      CTEventException - if an exception occurred
    • onBeforePublish

      default void onBeforePublish(long ctCollectionId) throws CTEventException
      Called before checking conflicts and publishing the CTCollection.
      Parameters:
      ctCollectionId - the collection ID of the CTCollection being published
      Throws:
      CTEventException - if an exception occurred
    • onBeforeRemove

      default void onBeforeRemove(long ctCollectionId) throws CTEventException
      Called before deleting a CTCollection.
      Parameters:
      ctCollectionId - the collection ID of the CTCollection being deleted
      Throws:
      CTEventException - if an exception occurred