Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
979165ee
Commit
979165ee
authored
Oct 04, 2017
by
afreyssin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix default values.
parent
446f9b4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/RestAcquisitionQueue.java
...bjectweb/joram/client/jms/admin/RestAcquisitionQueue.java
+2
-1
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/RestDistributionQueue.java
...jectweb/joram/client/jms/admin/RestDistributionQueue.java
+2
-2
No files found.
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/RestAcquisitionQueue.java
View file @
979165ee
...
...
@@ -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
;
...
...
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/admin/RestDistributionQueue.java
View file @
979165ee
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment