Class TcpTimeoutsImpl
java.lang.Object
com.sun.corba.ee.impl.transport.TcpTimeoutsImpl
- All Implemented Interfaces:
TcpTimeouts
-
Nested Class Summary
Nested classes/interfaces inherited from interface TcpTimeouts
TcpTimeouts.Factory, TcpTimeouts.Waiter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final intprivate final intprivate final intprivate static final ORBUtilSystemExceptionFields inherited from interface TcpTimeouts
factory -
Constructor Summary
ConstructorsConstructorDescriptionTcpTimeoutsImpl(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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturn the backoff factor, which is the percentage multiplier used to compute the next timeout in the Waiter.advance method.intReturn the initial time to wait on the first getTime or sleepTime call on a new Waiter instance.intGet the maximum time a single sleepTime or getTime can taoke or return in an instance of Waiter.intGet the maximum total time a Waiter can exist before isExpired returns true.inthashCode()private intprivate voidsetBackoffFactor(int backoff_percent) toString()waiter()Return a Waiter that can be used for computing a series of timeouts.
-
Field Details
-
wrapper
-
initial_time_to_wait
private final int initial_time_to_wait -
max_time_to_wait
private final int max_time_to_wait -
backoff_factor
private int backoff_factor -
max_single_wait_time
private final int max_single_wait_time
-
-
Constructor Details
-
TcpTimeoutsImpl
-
TcpTimeoutsImpl
public TcpTimeoutsImpl(int initial_time, int max_time, int backoff_percent) -
TcpTimeoutsImpl
public TcpTimeoutsImpl(int initial_time, int max_time, int backoff_percent, int max_single_wait_time)
-
-
Method Details
-
setBackoffFactor
private void setBackoffFactor(int backoff_percent) -
parseArg
-
get_initial_time_to_wait
public int get_initial_time_to_wait()Description copied from interface:TcpTimeoutsReturn the initial time to wait on the first getTime or sleepTime call on a new Waiter instance.- Specified by:
get_initial_time_to_waitin interfaceTcpTimeouts- Returns:
- time in milliseconds
-
get_max_time_to_wait
public int get_max_time_to_wait()Description copied from interface:TcpTimeoutsGet the maximum total time a Waiter can exist before isExpired returns true. -1 if not used for this TcpTimeouts instances.- Specified by:
get_max_time_to_waitin interfaceTcpTimeouts- Returns:
- time in milliseconds
-
get_backoff_factor
public int get_backoff_factor()Description copied from interface:TcpTimeoutsReturn the backoff factor, which is the percentage multiplier used to compute the next timeout in the Waiter.advance method.- Specified by:
get_backoff_factorin interfaceTcpTimeouts- Returns:
- percentage multiplier
-
get_max_single_wait_time
public int get_max_single_wait_time()Description copied from interface:TcpTimeoutsGet the maximum time a single sleepTime or getTime can taoke or return in an instance of Waiter. -1 if not used.- Specified by:
get_max_single_wait_timein interfaceTcpTimeouts- Returns:
- time in milliseconds
-
waiter
Description copied from interface:TcpTimeoutsReturn a Waiter that can be used for computing a series of timeouts.- Specified by:
waiterin interfaceTcpTimeouts- Returns:
- Waiter for timeouts
-
toString
-
equals
-
hashCode
-