onEvent(Object).
| Modifier and Type | Class and Description |
|---|---|
| public static interface | RateControl.
Factory to create RateControl instances. |
| Modifier and Type | Field and Description |
|---|---|
| public static final RateControl |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| NO_RATE_CONTROL | back to summary |
|---|---|
| public static final RateControl NO_RATE_CONTROL | |
| onEvent | back to summary |
|---|---|
| public boolean onEvent(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.
| |
| Modifier and Type | Method and Description |
|---|---|
| public default RateControl | newRateControl(EndPoint
the EndPoint for which the RateControl is created endPoint)Returns: a new RateControl instance for the given EndPoint |
| newRateControl | back to summary |
|---|---|
public default RateControl newRateControl(EndPoint endPoint)
| |