Mercurial Hosting > luan
comparison src/org/eclipse/jetty/util/thread/Timeout.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 3428c60d7cfc |
children | c948f674a2d5 |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
16 // ======================================================================== | 16 // ======================================================================== |
17 // | 17 // |
18 | 18 |
19 package org.eclipse.jetty.util.thread; | 19 package org.eclipse.jetty.util.thread; |
20 | 20 |
21 import org.eclipse.jetty.util.log.Log; | 21 import org.slf4j.Logger; |
22 import org.eclipse.jetty.util.log.Logger; | 22 import org.slf4j.LoggerFactory; |
23 | 23 |
24 | 24 |
25 /* ------------------------------------------------------------ */ | 25 /* ------------------------------------------------------------ */ |
26 /** Timeout queue. | 26 /** Timeout queue. |
27 * This class implements a timeout queue for timers that are at least as likely to be cancelled as they are to expire. | 27 * This class implements a timeout queue for timers that are at least as likely to be cancelled as they are to expire. |
31 * The nested class Task should be extended by users of this class to obtain call back notification of | 31 * The nested class Task should be extended by users of this class to obtain call back notification of |
32 * expires. | 32 * expires. |
33 */ | 33 */ |
34 public class Timeout | 34 public class Timeout |
35 { | 35 { |
36 private static final Logger LOG = Log.getLogger(Timeout.class); | 36 private static final Logger LOG = LoggerFactory.getLogger(Timeout.class); |
37 private Object _lock; | 37 private Object _lock; |
38 private long _duration; | 38 private long _duration; |
39 private volatile long _now=System.currentTimeMillis(); | 39 private volatile long _now=System.currentTimeMillis(); |
40 private Task _head=new Task(); | 40 private Task _head=new Task(); |
41 | 41 |
139 | 139 |
140 task.expired(); | 140 task.expired(); |
141 } | 141 } |
142 catch(Throwable th) | 142 catch(Throwable th) |
143 { | 143 { |
144 LOG.warn(Log.EXCEPTION,th); | 144 LOG.warn("EXCEPTION",th); |
145 } | 145 } |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 /* ------------------------------------------------------------ */ | 149 /* ------------------------------------------------------------ */ |