From d3b2a2cf66a816258c286400a4735194aed27155 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 5 Jan 2012 20:48:09 +0200 Subject: [PATCH] use a constant value for default master node timeout --- .../action/support/master/MasterNodeOperationRequest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/elasticsearch/action/support/master/MasterNodeOperationRequest.java b/src/main/java/org/elasticsearch/action/support/master/MasterNodeOperationRequest.java index 5be65a3ef9b..84509d264b7 100644 --- a/src/main/java/org/elasticsearch/action/support/master/MasterNodeOperationRequest.java +++ b/src/main/java/org/elasticsearch/action/support/master/MasterNodeOperationRequest.java @@ -28,12 +28,12 @@ import java.io.IOException; /** * A based request for master based operation. - * - * */ public abstract class MasterNodeOperationRequest implements ActionRequest { - private TimeValue masterNodeTimeout = TimeValue.timeValueSeconds(30); + public static TimeValue DEFAULT_MASTER_NODE_TIMEOUT = TimeValue.timeValueSeconds(30); + + private TimeValue masterNodeTimeout = DEFAULT_MASTER_NODE_TIMEOUT; @Override public boolean listenerThreaded() {