Class RLRateLimitedPredicate<T>

java.lang.Object
org.nustaq.reallive.api.RLRateLimitedPredicate<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Predicate<T>, RLPredicate<T>

public class RLRateLimitedPredicate<T> extends Object implements RLPredicate<T>
a rate limited query. it limits the amount of results per second to the given value
See Also:
  • Constructor Details

    • RLRateLimitedPredicate

      public RLRateLimitedPredicate(int limit, RLPredicate query)
  • Method Details

    • test

      public boolean test(T o)
      Specified by:
      test in interface Predicate<T>
    • getRecordLimit

      public int getRecordLimit()
      Specified by:
      getRecordLimit in interface RLPredicate<T>
    • _setLimit

      public void _setLimit(int limit)