Commit 979165ee authored by afreyssin's avatar afreyssin

Fix default values.

parent 446f9b4c
......@@ -64,7 +64,8 @@ public class RestAcquisitionQueue {
private String password = "anonymous";
private boolean mediaTypeJson = true;
private long timeout = 10000;
private int acquisitionPeriod = 100; // TODO (AF): Normally not needed with asynchronous acquisition.
// This attribute below is only needed with timed acquisition.
private int acquisitionPeriod = -1;
// Normally each consumer resource need to be explicitly closed, this parameter allows to set the idle time
// in seconds in which the consumer context will be closed if idle.
private long idleTimeout = 60;
......
......@@ -63,7 +63,7 @@ public class RestDistributionQueue {
private boolean batch = true;
private boolean async = true;
private int period = 1000;
private long idleTimeout; // TODO (AF): Fix a default value (used in constructor)
private long idleTimeout = 60;
/**
* @return the hostName
......@@ -303,7 +303,7 @@ public class RestDistributionQueue {
if (!props.containsKey(DestinationConstants.BATCH_DISTRIBUTION_OPTION))
props.setProperty(DestinationConstants.BATCH_DISTRIBUTION_OPTION, ""+batch);
if (!props.containsKey(DestinationConstants.IDLETIMEOUT_PROP))
props.setProperty(DestinationConstants.IDLETIMEOUT_PROP, ""+ idleTimeout);
props.setProperty(DestinationConstants.IDLETIMEOUT_PROP, ""+idleTimeout);
if (!props.containsKey("period"))
props.setProperty("period", ""+period);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment