Package com.sun.corba.ee.spi.transport
Interface TcpTimeouts.Factory
- Enclosing interface:
TcpTimeouts
public static interface TcpTimeouts.Factory
Factory used to create TcpTimeouts instances.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int initial_time_to_wait, int max_time_to_wait, int backoff_value) Create TcpTimeouts assuming that max_single_wait is unbounded.create
(int initial_time_to_wait, int max_time_to_wait, int backoff_value, int max_single_wait) Create TcpTimeouts using all configuration parameters, including a bound on the maximum single wait time.Create TcpTimeouts from a configuration string.
-
Method Details
-
create
Create TcpTimeouts assuming that max_single_wait is unbounded.- Parameters:
initial_time_to_wait
- initial time in millisecondsmax_time_to_wait
- max time in millisecondsbackoff_value
- percentage multiplier- Returns:
- Constructed TcpTimeout
-
create
TcpTimeouts create(int initial_time_to_wait, int max_time_to_wait, int backoff_value, int max_single_wait) Create TcpTimeouts using all configuration parameters, including a bound on the maximum single wait time.- Parameters:
initial_time_to_wait
- initial time in millisecondsmax_time_to_wait
- max time in millisecondsbackoff_value
- percentage multipliermax_single_wait
- max single time in milliseconds- Returns:
- Constructed TcpTimeout
-
create
Create TcpTimeouts from a configuration string. args must be a : separated string, with 3 or 4 args, all of which are positive decimal integers. The integers are in the same order as the arguments to the other create methods.- Parameters:
args
- a colon separated string- Returns:
- Constructed TcpTimeout
-