Class XmlRpcWorkerFactory

    • Field Detail

      • pool

        private final java.util.List pool
      • numThreads

        private int numThreads
    • Constructor Detail

      • XmlRpcWorkerFactory

        public XmlRpcWorkerFactory​(XmlRpcController pController)
        Creates a new instance.
        Parameters:
        pController - The client controlling the factory.
    • Method Detail

      • newWorker

        protected abstract XmlRpcWorker newWorker()
        Creates a new worker instance.
        Returns:
        New instance of XmlRpcWorker.
      • releaseWorker

        public void releaseWorker​(XmlRpcWorker pWorker)
        Called, when the worker did its job. Frees resources and decrements the number of concurrent requests.
        Parameters:
        pWorker - The worker being released.
      • getCurrentRequests

        public int getCurrentRequests()
        Returns the number of currently running requests.
        Returns:
        Current number of concurrent requests.