Class StreamTrimOptions.MaxLen

    • Constructor Detail

      • MaxLen

        public MaxLen​(long threshold)
        Create a Max Length trim option to trim stream based on length.
        Parameters:
        threshold - Comparison count.
      • MaxLen

        public MaxLen​(boolean exact,
                      long threshold)
        Create a Max Length trim option to trim stream based on length.
        Parameters:
        exact - Whether to match exactly on the threshold.
        threshold - Comparison count.
      • MaxLen

        public MaxLen​(long threshold,
                      long limit)
        Create a Max Length trim option to trim stream entries exceeds the threshold.
        Parameters:
        threshold - Comparison count.
        limit - Max number of stream entries to be trimmed for non-exact match.