update system var: BDW_SOCKET_TIMEOUT

This commit is contained in:
CaiHQ 2024-12-24 12:59:10 +08:00
parent eff8d37278
commit 52aa2af997

View File

@ -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;