Class CosmosChangeFeedContinuationTokenUtils

java.lang.Object
com.azure.cosmos.util.CosmosChangeFeedContinuationTokenUtils

public final class CosmosChangeFeedContinuationTokenUtils extends Object
  • Method Details

    • extractContinuationTokens

      public static Map<FeedRange,String> extractContinuationTokens(String changeFeedContinuationToken)
      Utility method to help extract continuation tokens for sub-feedRange
      Parameters:
      changeFeedContinuationToken - the original change feed continuation token being returned from queryChangeFeed.
      Returns:
      a map of sub-feedRange to its mapping continuation token string
    • extractContinuationTokens

      public static Map<FeedRange,String> extractContinuationTokens(String changeFeedContinuationToken, Integer targetedContinuationCount)
      Utility method to help extract continuation tokens for sub-range
      Parameters:
      changeFeedContinuationToken - the original change feed continuation token being returned from queryChangeFeed.
      targetedContinuationCount - the targeted continuation token count. Max will be capped by the count of sub-feedRanges included in the continuation token. Using -1 to extract continuations for each sub-feedRanges. Using null will be same as using -1.
      Returns:
      a map of sub-feedRange to its mapping continuation token string