Package org.eclipse.jetty.http2.parser
Interface RateControl
-
- All Known Implementing Classes:
WindowRateControl
public interface RateControlControls rate of events viaonEvent(Object).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRateControl.FactoryFactory to create RateControl instances.
-
Field Summary
Fields Modifier and Type Field Description static RateControlNO_RATE_CONTROL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonEvent(java.lang.Object event)Applications should call this method when they want to signal an event that is subject to rate control.
-
-
-
Field Detail
-
NO_RATE_CONTROL
static final RateControl NO_RATE_CONTROL
-
-
Method Detail
-
onEvent
boolean onEvent(java.lang.Object event)
Applications should call this method when they want to signal an event that is subject to rate control.
Implementations should return true if the event does not exceed the desired rate, or false to signal that the event exceeded the desired rate.
- Parameters:
event- the event subject to rate control.- Returns:
- true IFF the rate is within limits
-
-