Class AllPassThrottlePolicy

    • Constructor Detail

      • AllPassThrottlePolicy

        public AllPassThrottlePolicy()
    • Method Detail

      • canSend

        public boolean canSend​(Message msg,
                               int pendingCount)
        Description copied from interface: ThrottlePolicy
        Returns whether or not the given message can be sent according to the current state of this policy.
        Specified by:
        canSend in interface ThrottlePolicy
        Parameters:
        msg - the message to evaluate
        pendingCount - the current number of pending messages
        Returns:
        true to send the message
      • processReply

        public void processReply​(Reply reply)
        Description copied from interface: ThrottlePolicy
        This method is called once for every reply that is received.
        Specified by:
        processReply in interface ThrottlePolicy
        Parameters:
        reply - the reply received