commit | 3eb5b816ee91f28f43e27cdb39fed75434492d40 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Mon Mar 04 13:24:27 2019 -0800 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Mar 05 20:00:25 2019 +0000 |
tree | 646054f3c799f36652e06befb021adb0df0d800f | |
parent | a35584ee7412172f029f757edfaa72b285393767 [diff] |
Make default primitive operation timeout configurable Change-Id: I340085f5031fd6a56951cc66e7bc8f8f2f64ac37
diff --git a/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java b/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java index 620e16d..8ce1e8b 100644 --- a/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java +++ b/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java
@@ -133,7 +133,8 @@ /** * Default timeout for primitive operations. */ - long DEFAULT_OPERATION_TIMEOUT_MILLIS = 15000L; + long DEFAULT_OPERATION_TIMEOUT_MILLIS = Long.parseLong( + System.getProperty("onos.cluster.primitive.operationTimeoutMillis", String.valueOf(15000))); /** * Use {@link #DEFAULT_OPERATION_TIMEOUT_MILLIS} instead.