public class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
calculateReceiveTimeout(int keepAliveInterval,
int reasonableTransTime)
Calculates receive timeout based on keep alive interval and reasonable transmission time.
|
static long |
calculateSendTimeout(int keepAliveInterval,
int reasonableTransTime)
Calculates send timeout based on keep alive interval and reasonable transmission time.
|
public static long calculateReceiveTimeout(int keepAliveInterval, int reasonableTransTime)
keepAliveInterval
- interval in secondsreasonableTransTime
- reasonable transmission time in % of keepAliveIntervalpublic static long calculateSendTimeout(int keepAliveInterval, int reasonableTransTime)
keepAliveInterval
- interval in secondsreasonableTransTime
- reasonable transmission time in % of keepAliveIntervalCopyright © 2005–2024 Onix Solutions. All rights reserved.