Package com.sun.corba.ee.impl.transport
Class TcpTimeoutsImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.TcpTimeoutsImpl
-
- All Implemented Interfaces:
TcpTimeouts
public class TcpTimeoutsImpl extends java.lang.Object implements TcpTimeouts
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.corba.ee.spi.transport.TcpTimeouts
TcpTimeouts.Factory, TcpTimeouts.Waiter
-
-
Field Summary
Fields Modifier and Type Field Description private int
backoff_factor
private int
initial_time_to_wait
private int
max_single_wait_time
private int
max_time_to_wait
private static ORBUtilSystemException
wrapper
-
Fields inherited from interface com.sun.corba.ee.spi.transport.TcpTimeouts
factory
-
-
Constructor Summary
Constructors Constructor 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(java.lang.String args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.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()
private int
parseArg(java.lang.String name, java.lang.String value)
private void
setBackoffFactor(int backoff_percent)
java.lang.String
toString()
TcpTimeouts.Waiter
waiter()
Return a Waiter that can be used for computing a series of timeouts.
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException 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
-
-
Method Detail
-
setBackoffFactor
private void setBackoffFactor(int backoff_percent)
-
parseArg
private int parseArg(java.lang.String name, java.lang.String value)
-
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
public TcpTimeouts.Waiter 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-