Interface LimiterFilterCondition<MessageType>

  • Type Parameters:
    MessageType - the type of message this condition applies to
    All Known Implementing Classes:
    SipLimiterFilterCondition

    public interface LimiterFilterCondition<MessageType>
    Represents a condition to evaluate against an incoming message to determine if the message can be considered for rate limiting or if it must be allowed through.
    • Method Detail

      • isLimitable

        boolean isLimitable​(MessageType message)
        Tests if the given message can be considered for rate limiting or if it must be allowed through.
        Parameters:
        message - the message to test
        Returns:
        true if the message can be limited, false otherwise
      • getMessageType

        java.lang.Class<MessageType> getMessageType()
        Gets the message type that this limiter filter condition applies to.
        Returns:
        the class of the message type to which this condition applies