Interface StreamTrimStrategyArgs<T>

All Known Implementing Classes:
StreamAddParams, StreamTrimParams

public interface StreamTrimStrategyArgs<T>
Arguments object for Stream trim method.
Author:
Nikita Koksharov
  • Method Details

    • maxLen

      StreamTrimLimitArgs<T> maxLen(int threshold)
      Defines MAXLEN strategy used for Stream trimming. Evicts entries which position exceeds the specified stream's length threshold.
      Parameters:
      threshold - - trim threshold
      Returns:
      arguments object
    • minId

      Defines MINID strategy used for Stream trimming. Evicts entries with IDs lower than threshold, where threshold is a stream ID.
      Parameters:
      messageId - - stream Id
      Returns:
      arguments object