1. /*
  2. * @(#)ReadTCPTimeoutsImpl.java 1.3 04/07/26
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.impl.transport;
  8. import com.sun.corba.se.spi.transport.ReadTimeouts;
  9. /**
  10. * @author Charlie Hunt
  11. */
  12. public class ReadTCPTimeoutsImpl implements ReadTimeouts
  13. {
  14. private int initial_time_to_wait;
  15. private int max_time_to_wait;
  16. private int max_giop_header_time_to_wait;
  17. private double backoff_factor;
  18. // constructor
  19. public ReadTCPTimeoutsImpl(int initial_time,
  20. int max_time,
  21. int max_giop_header_time,
  22. int backoff_percent) {
  23. this.initial_time_to_wait = initial_time;
  24. this.max_time_to_wait = max_time;
  25. this.max_giop_header_time_to_wait = max_giop_header_time;
  26. this.backoff_factor = 1 + (double)(backoff_percent)/100;
  27. }
  28. public int get_initial_time_to_wait() { return initial_time_to_wait; }
  29. public int get_max_time_to_wait() { return max_time_to_wait; }
  30. public double get_backoff_factor() { return backoff_factor; }
  31. public int get_max_giop_header_time_to_wait() {
  32. return max_giop_header_time_to_wait; }
  33. }
  34. // End of file.