public final class ThrottleProps extends Object implements HumanReadable
Modifier and Type | Field and Description |
---|---|
static String |
PROP_VALUE_SEPARATOR |
Constructor and Description |
---|
ThrottleProps(int interval,
int limit)
Creates throttle properties.
|
Modifier and Type | Method and Description |
---|---|
int |
getInterval() |
int |
getLimit() |
String |
toHumanString()
Returns human readable entity identification with start and end round brackets.
|
String |
toString() |
public static final String PROP_VALUE_SEPARATOR
public ThrottleProps(int interval, int limit)
interval
- the time interval in secondslimit
- the limit of requests for specified intervalpublic int getInterval()
public int getLimit()
public String toHumanString()
HumanReadable
toHumanString
in interface HumanReadable
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.