Package org.apache.synapse.commons.throttle.core.factory

# Class ThrottleConfigurationFactory

java.lang.Object
org.apache.synapse.commons.throttle.core.factory.ThrottleConfigurationFactory

public class ThrottleConfigurationFactory extends Object
Factory for creating a ThrottleConfiguration - holds all callers controle parameters

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ThrottleConfigurationFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ThrottleConfiguration`
  `createThrottleConfiguration(int throttletype)`
  To create a ThrottleConfiguration for the given throttle type

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ThrottleConfigurationFactory

    public ThrottleConfigurationFactory()

- ## Method Details

  - ### createThrottleConfiguration

    public static ThrottleConfiguration createThrottleConfiguration(int throttletype) throws ThrottleException
    To create a ThrottleConfiguration for the given throttle type
    Parameters:
      `throttletype` - - The type of the throttle
    Returns:
      ThrottleConfiguration - The corresponding ThrottleConfiguration for the given throttle type
    Throws:
      `ThrottleException` - - Throws for if the throttle type is unknown