Class ThrottleFactory
java.lang.Object
org.apache.synapse.commons.throttle.core.ThrottleFactory
Factory for creating a throttle instance using throttle policy
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrottlecreateMediatorThrottle(org.apache.neethi.Policy policy) Abstraction for processing mediator policy assertion and create a throttle based on itstatic ThrottlecreateModuleThrottle(org.apache.neethi.Policy policy) Abstraction for processing module policy assertion and create a throttle based on itstatic ThrottlecreateOperationThrottle(org.apache.neethi.Policy policy) Abstraction for processing operation policy assertion and create a throttle based on itstatic ThrottlecreateServiceThrottle(org.apache.neethi.Policy policy) Abstraction for processing service policy assertion and create a throttle based on it
-
Method Details
-
createModuleThrottle
public static Throttle createModuleThrottle(org.apache.neethi.Policy policy) throws ThrottleException Abstraction for processing module policy assertion and create a throttle based on it- Parameters:
policy- Throttle policy- Returns:
- Throttle instance , if there any module policy assertion , otherwise null
- Throws:
ThrottleException
-
createServiceThrottle
public static Throttle createServiceThrottle(org.apache.neethi.Policy policy) throws ThrottleException Abstraction for processing service policy assertion and create a throttle based on it- Parameters:
policy- Throttle policy- Returns:
- Throttle instance , if there any service policy assertion , otherwise null
- Throws:
ThrottleException
-
createOperationThrottle
public static Throttle createOperationThrottle(org.apache.neethi.Policy policy) throws ThrottleException Abstraction for processing operation policy assertion and create a throttle based on it- Parameters:
policy- Throttle policy- Returns:
- Throttle instance , if there any operation policy assertion , otherwise null
- Throws:
ThrottleException
-
createMediatorThrottle
public static Throttle createMediatorThrottle(org.apache.neethi.Policy policy) throws ThrottleException Abstraction for processing mediator policy assertion and create a throttle based on it- Parameters:
policy- Throttle policy- Returns:
- Throttle instance , if there any mediator policy assertion , otherwise null
- Throws:
ThrottleException
-