use a constant value for default master node timeout

This commit is contained in:
Shay Banon 2012-01-05 20:48:09 +02:00
parent 2b125bd6b4
commit d3b2a2cf66
1 changed files with 3 additions and 3 deletions

View File

@ -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() {