Skip to content

Commit

Permalink
use a long for grouping-handler's group-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesnil committed Nov 7, 2013
1 parent a71f6cb commit 7f7ea2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ private void parseGroupingHandlerConfiguration(final Element node, final Configu
String type = getString(node, "type", null, Validators.NOT_NULL_OR_EMPTY);
String address = getString(node, "address", null, Validators.NOT_NULL_OR_EMPTY);
Integer timeout = getInteger(node, "timeout", GroupingHandlerConfiguration.DEFAULT_TIMEOUT, Validators.GT_ZERO);
Integer groupTimeout = getInteger(node, "group-timeout", GroupingHandlerConfiguration.DEFAULT_GROUP_TIMEOUT, Validators.MINUS_ONE_OR_GT_ZERO);
Long groupTimeout = getLong(node, "group-timeout", GroupingHandlerConfiguration.DEFAULT_GROUP_TIMEOUT, Validators.MINUS_ONE_OR_GT_ZERO);
Long reaperPeriod = getLong(node, "reaper-period", GroupingHandlerConfiguration.DEFAULT_REAPER_PERIOD, Validators.GT_ZERO);
mainConfiguration.setGroupingHandlerConfiguration(new GroupingHandlerConfiguration(new SimpleString(name),
type.equals(GroupingHandlerConfiguration.TYPE.LOCAL.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class GroupingHandlerConfiguration implements Serializable

public static final int DEFAULT_TIMEOUT = 5000;

public static final int DEFAULT_GROUP_TIMEOUT = -1;
public static final long DEFAULT_GROUP_TIMEOUT = -1;

public static final long DEFAULT_REAPER_PERIOD = 30000;

Expand Down

0 comments on commit 7f7ea2b

Please sign in to comment.