dlr         02/02/18 09:01:25

  Modified:    src/java/org/apache/xmlrpc XmlRpc.java
  Log:
  o JavaDoc's version constant.
  
  o Added maxThreads member, and getMaxThreads() and setMaxThreads(int)
  access and mutator methods.
  
  Revision  Changes    Path
  1.14      +24 -0     xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java
  
  Index: XmlRpc.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- XmlRpc.java       16 Feb 2002 02:36:48 -0000      1.13
  +++ XmlRpc.java       18 Feb 2002 17:01:25 -0000      1.14
  @@ -76,8 +76,16 @@
   public abstract class XmlRpc 
       extends HandlerBase
   {
  +    /**
  +     * The version string used in HTTP communication.
  +     */
       public static final String version = "Apache XML-RPC 1.0";
   
  +    /**
  +     * The maximum number of threads which can be used concurrently.
  +     */
  +    private static int maxThreads = 100;
  +
       String methodName;
   
       // class name of SAX parser to use
  @@ -229,6 +237,22 @@
           return encodings.getProperty (encoding, encoding);
       }
   
  +
  +    /**
  +     * Gets the maximum number of threads used at any given moment.
  +     */
  +    public int getMaxThreads()
  +    {
  +        return maxThreads;
  +    }
  +
  +    /**
  +     * Sets the maximum number of threads used at any given moment.
  +     */
  +    public void setMaxThreads(int maxThreads)
  +    {
  +        this.maxThreads = maxThreads;
  +    }
   
       /**
         * Switch debugging output on/off.
  
  
  


Reply via email to