public final class ThrottleScope extends Object implements HumanReadable
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_SERVICE
Represents any service.
|
static String |
ANY_SOURCE_SYSTEM
Represents any source system.
|
static String |
THROTTLE_SEPARATOR |
| Constructor and Description |
|---|
ThrottleScope(String sourceSystem,
String serviceName)
Creates new throttle scope.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getServiceName()
Gets service name.
|
String |
getSourceSystem()
Gets source system.
|
int |
hashCode() |
int |
match(ThrottleScope that)
Tests if the throttling scopes match.
|
String |
toHumanString()
Returns human readable entity identification with start and end round brackets.
|
String |
toString() |
public static final String ANY_SOURCE_SYSTEM
public static final String ANY_SERVICE
public static final String THROTTLE_SEPARATOR
public ThrottleScope(String sourceSystem, String serviceName)
sourceSystem - the source system, can be used ANY_SOURCE_SYSTEM or '*'serviceName - the service name, can be used ANY_SERVICE or '*'public String getSourceSystem()
public String getServiceName()
public int match(ThrottleScope that)
that - represents object of matchingpublic String toHumanString()
HumanReadabletoHumanString in interface HumanReadableCopyright © 2018 Pivotal Software, Inc.. All rights reserved.