Class ThrottleFactory


  • public class ThrottleFactory
    extends Object
    Factory for creating a throttle instance using throttle policy
    • Method Detail

      • 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