Class CallerContextFactory


  • public class CallerContextFactory
    extends Object
    Factory for creating a CallerContext
    • Constructor Detail

      • CallerContextFactory

        public CallerContextFactory()
    • Method Detail

      • createCaller

        public static CallerContext createCaller​(int throttletype,
                                                 String id)
                                          throws ThrottleException
        To create a CallerContext(the run time data holder for a remote caller) for the given throttle type. Needs to provide the ID(ip | domain) of the remote caller (ip/domain according to the policy)
        Parameters:
        throttletype - - The type of the throttle
        id - - The id of the caller
        Returns:
        caller - The corresponding caller context for the given throttle type
        Throws:
        ThrottleException - - Throws for if the throttle type is unknown