code: /*
   * Copyright (c) 2022 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.integrations.debezium;
  
  import com.fasterxml.jackson.databind.JsonNode;
  
  /**
   * This interface is used to define the target position at the beginning of the sync so that once we
   * reach the desired target, we can shutdown the sync. This is needed because it might happen that
   * while we are syncing the data, new changes are being made in the source database and as a result
   * we might end up syncing forever. In order to tackle that, we need to define a point to end at the
   * beginning of the sync
   */
  public interface CdcTargetPosition {
  
    boolean reachedTargetPosition(JsonNode valueAsJson);
  
  }
  