mirror of
https://gitee.com/BDWare/common
synced 2025-01-09 17:34:16 +00:00
update system var: BDW_SOCKET_TIMEOUT
This commit is contained in:
parent
eff8d37278
commit
52aa2af997
@ -16,12 +16,13 @@ import java.util.concurrent.Executors;
|
|||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
public class SyncResult {
|
public class SyncResult {
|
||||||
|
static Logger LOGGER = LogManager.getLogger(SyncResult.class);
|
||||||
|
|
||||||
public static final HashedWheelTimer HASHED_WHEEL_TIMER =
|
public static final HashedWheelTimer HASHED_WHEEL_TIMER =
|
||||||
new HashedWheelTimer(Executors.defaultThreadFactory(), 5, TimeUnit.MILLISECONDS, 2);
|
new HashedWheelTimer(Executors.defaultThreadFactory(), 5, TimeUnit.MILLISECONDS, 2);
|
||||||
static final String TimeoutStr =
|
static final String TimeoutStr =
|
||||||
JsonUtil.toJson(new ContractResult(Status.Error, new JsonPrimitive("Timeout!")));
|
JsonUtil.toJson(new ContractResult(Status.Error, new JsonPrimitive("Timeout!")));
|
||||||
static long syncTime = getSyncTime();
|
static long syncTime = getSyncTime();
|
||||||
static Logger LOGGER = LogManager.getLogger(SyncResult.class);
|
|
||||||
|
|
||||||
private static long getSyncTime() {
|
private static long getSyncTime() {
|
||||||
long retVal;
|
long retVal;
|
||||||
|
Loading…
Reference in New Issue
Block a user