jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1514489 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java
Date Thu, 15 Aug 2013 20:54:08 GMT
Author: pmouawad
Date: Thu Aug 15 20:54:08 2013
New Revision: 1514489

URL: http://svn.apache.org/r1514489
Log:
Add javadocs
Add constant for default queue size

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java?rev=1514489&r1=1514488&r2=1514489&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java Thu Aug 15 20:54:08
2013
@@ -31,6 +31,9 @@ import org.apache.jorphan.logging.Loggin
 import org.apache.jorphan.util.JMeterError;
 import org.apache.log.Logger;
 
+/**
+ * Sends samples in a separate Thread and in Batch mode
+ */
 public class AsynchSampleSender extends AbstractSampleSender implements Serializable {
 
     private static final long serialVersionUID = 251L;
@@ -40,9 +43,11 @@ public class AsynchSampleSender extends 
     // Create unique object as marker for end of queue
     private transient static final SampleEvent FINAL_EVENT = new SampleEvent();
 
-    private static final int serverConfiguredCapacity = JMeterUtils.getPropDefault("asynch.batch.queue.size",
100); // $NON-NLS-1$
+    private static final int DEFAULT_QUEUE_SIZE = 100;
     
-    private final int clientConfiguredCapacity = JMeterUtils.getPropDefault("asynch.batch.queue.size",
100); // $NON-NLS-1$
+    private static final int serverConfiguredCapacity = JMeterUtils.getPropDefault("asynch.batch.queue.size",
DEFAULT_QUEUE_SIZE); // $NON-NLS-1$
+    
+    private final int clientConfiguredCapacity = JMeterUtils.getPropDefault("asynch.batch.queue.size",
DEFAULT_QUEUE_SIZE); // $NON-NLS-1$
 
     // created by client 
     private final RemoteSampleListener listener;



Mime
View raw message