public class ThrottleContextFactory extends Object
| Constructor and Description |
|---|
ThrottleContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ThrottleContext |
createThrottleContext(int throttletype,
ThrottleConfiguration configuration)
To create a ThrottleContext for the given throttle type
Needs to provide a throttle configuration
|
public static ThrottleContext createThrottleContext(int throttletype, ThrottleConfiguration configuration) throws ThrottleException
throttletype - - The type of the throttleconfiguration - - The throttle configurationThrottleException - - Throws for if the throttle type is unknownCopyright © 2005–2015 Apache Software Foundation. All rights reserved.