public class TcpTimeoutsImpl extends Object implements TcpTimeouts
TcpTimeouts.Factory, TcpTimeouts.Waiterfactory| Constructor and Description |
|---|
TcpTimeoutsImpl(int initial_time,
int max_time,
int backoff_percent) |
TcpTimeoutsImpl(int initial_time,
int max_time,
int backoff_percent,
int max_single_wait_time) |
TcpTimeoutsImpl(String args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
get_backoff_factor()
Return the backoff factor, which is the percentage multiplier used
to compute the next timeout in the Waiter.advance method.
|
int |
get_initial_time_to_wait()
Return the initial time to wait on the first getTime or sleepTime
call on a new Waiter instance.
|
int |
get_max_single_wait_time()
Get the maximum time a single sleepTime or getTime can taoke or return
in an instance of Waiter.
|
int |
get_max_time_to_wait()
Get the maximum total time a Waiter can exist before isExpired returns
true.
|
int |
hashCode() |
String |
toString() |
TcpTimeouts.Waiter |
waiter()
Return a Waiter that can be used for computing a series
of timeouts.
|
public TcpTimeoutsImpl(String args)
public TcpTimeoutsImpl(int initial_time,
int max_time,
int backoff_percent)
public TcpTimeoutsImpl(int initial_time,
int max_time,
int backoff_percent,
int max_single_wait_time)
public int get_initial_time_to_wait()
TcpTimeoutsget_initial_time_to_wait in interface TcpTimeoutspublic int get_max_time_to_wait()
TcpTimeoutsget_max_time_to_wait in interface TcpTimeoutspublic int get_backoff_factor()
TcpTimeoutsget_backoff_factor in interface TcpTimeoutspublic int get_max_single_wait_time()
TcpTimeoutsget_max_single_wait_time in interface TcpTimeoutspublic TcpTimeouts.Waiter waiter()
TcpTimeoutswaiter in interface TcpTimeoutsCopyright © 2017–2019 Eclipse Foundation. All rights reserved.