User: kimptoc
Date: 01/09/01 12:50:33
Modified: src/main/org/jboss/util/timeout TimeoutFactory.java
Log:
remove deprecated logging import, where possible, otherwise comment as needing
replacement with log4j.... must find out how it is use.... would be good if the
deprecation message pointed to an example to use...
Revision Changes Path
1.7 +8 -7 jboss/src/main/org/jboss/util/timeout/TimeoutFactory.java
Index: TimeoutFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/timeout/TimeoutFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TimeoutFactory.java 2001/08/03 17:15:58 1.6
+++ TimeoutFactory.java 2001/09/01 19:50:33 1.7
@@ -6,6 +6,7 @@
*/
package org.jboss.util.timeout;
+// TODO this needs to be replaced with the log4j logging
import org.jboss.logging.Logger;
@@ -20,9 +21,9 @@
* timeout is saved to be reused for another timeout. This means that if
* no timeouts are fired, this class will eventually operate without
* allocating anything on the heap.
- *
+ *
* @author <a href="[EMAIL PROTECTED]">Ole Husgaard</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class TimeoutFactory {
@@ -64,7 +65,7 @@
static final int DONE = -1; // done, may be finalized or reused
static final int TIMEOUT = -2; // target being called
static final int CWAIT = -3; // target being called and cancel waiting
-
+
int index; // index in queue, or one of constants above.
long time; // time to fire
TimeoutTarget target; // target to fire at
@@ -80,7 +81,7 @@
*/
private static class TimeoutWorker extends Thread {
private TimeoutImpl work;
-
+
/**
* Create a new instance.
*
@@ -90,7 +91,7 @@
this.work = work;
setDaemon(false);
}
-
+
/**
* Override to fire the timeout.
*/
@@ -168,7 +169,7 @@
*
* The invariant may be temporarily broken while executing synchronized
* on <code>this</code> instance, but is always reestablished before
- * leaving the synchronized code.
+ * leaving the synchronized code.
*
* The node at index <code>1</code> is always the first node to timeout,
* as can be deduced from the invariant.
@@ -562,4 +563,4 @@
}
}
-
+
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development