Package com.sun.corba.ee.impl.transport
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 com.sun.corba.ee.spi.transport.TcpTimeouts
TcpTimeouts.Factory, TcpTimeouts.Waiter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final int
private final int
private final int
private static final ORBUtilSystemException
Fields inherited from interface com.sun.corba.ee.spi.transport.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 TypeMethodDescriptionboolean
int
Return the backoff factor, which is the percentage multiplier used to compute the next timeout in the Waiter.advance method.int
Return the initial time to wait on the first getTime or sleepTime call on a new Waiter instance.int
Get the maximum time a single sleepTime or getTime can taoke or return in an instance of Waiter.int
Get the maximum total time a Waiter can exist before isExpired returns true.int
hashCode()
private int
private void
setBackoffFactor
(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:TcpTimeouts
Return the initial time to wait on the first getTime or sleepTime call on a new Waiter instance.- Specified by:
get_initial_time_to_wait
in interfaceTcpTimeouts
- Returns:
- time in milliseconds
-
get_max_time_to_wait
public int get_max_time_to_wait()Description copied from interface:TcpTimeouts
Get 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_wait
in interfaceTcpTimeouts
- Returns:
- time in milliseconds
-
get_backoff_factor
public int get_backoff_factor()Description copied from interface:TcpTimeouts
Return the backoff factor, which is the percentage multiplier used to compute the next timeout in the Waiter.advance method.- Specified by:
get_backoff_factor
in interfaceTcpTimeouts
- Returns:
- percentage multiplier
-
get_max_single_wait_time
public int get_max_single_wait_time()Description copied from interface:TcpTimeouts
Get 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_time
in interfaceTcpTimeouts
- Returns:
- time in milliseconds
-
waiter
Description copied from interface:TcpTimeouts
Return a Waiter that can be used for computing a series of timeouts.- Specified by:
waiter
in interfaceTcpTimeouts
- Returns:
- Waiter for timeouts
-
toString
-
equals
-
hashCode
public int hashCode()
-