public class ThrottleContextFactory
extends java.lang.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
|
static ThrottleContextCleanupTask |
getThrottleContextCleanupTaskInstance()
Get throttle caller context cleanup task instance
implementation
|
static ThrottleWindowReplicator |
getThrottleWindowReplicatorInstance()
Ger throttle window replicator instance to make sure that there will be one throttle replicator in the implementation
|
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 unknownpublic static ThrottleWindowReplicator getThrottleWindowReplicatorInstance()
public static ThrottleContextCleanupTask getThrottleContextCleanupTaskInstance()
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.