User: jules_gosnell
  Date: 02/01/31 16:32:24

  Modified:    jetty/src/main/org/jboss/jetty/util NaiveTimeOutManager.java
  Log:
  some way further to configurable snapshot strategies and intervals,
  
  Revision  Changes    Path
  1.4       +5 -3      
contrib/jetty/src/main/org/jboss/jetty/util/NaiveTimeOutManager.java
  
  Index: NaiveTimeOutManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/util/NaiveTimeOutManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NaiveTimeOutManager.java  2002/01/14 22:25:18     1.3
  +++ NaiveTimeOutManager.java  2002/02/01 00:32:24     1.4
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: NaiveTimeOutManager.java,v 1.3 2002/01/14 22:25:18 jules_gosnell Exp $
  +// $Id: NaiveTimeOutManager.java,v 1.4 2002/02/01 00:32:24 jules_gosnell Exp $
   
   //------------------------------------------------------------------------------
   
  @@ -40,10 +40,12 @@
     class Entry
     {
       final Object _object;
  +    final long   _timeRegistered;
       final long   _maxInactiveInterval;
  -    Entry(Object object, long maxInactiveInterval)
  +    Entry(Object object, long timeRegistered, long maxInactiveInterval)
       {
         _object=object;
  +      _timeRegistered=timeRegistered;
         _maxInactiveInterval=maxInactiveInterval;
       }
   
  @@ -66,7 +68,7 @@
         if (maxInactiveInterval<1)
        return;                 // never timeout
   
  -      Entry entry=new Entry(object, maxInactiveInterval);
  +      Entry entry=new Entry(object, timeRegistered, maxInactiveInterval);
   
         synchronized (_entries) {
        _entries.add(entry);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to