Fix checkstyle

This commit is contained in:
norman 2012-05-21 11:57:55 +02:00
parent 10cd871df7
commit 0a95ce8104
5 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@ public abstract class AbstractTrafficShapingHandler extends
/**
* used in releaseExternalResources() to cancel the timer
*/
volatile private Timeout timeout = null;
private volatile Timeout timeout;
/**
* Limit in B/s to apply to write

View File

@ -33,7 +33,7 @@ import io.netty.util.Timer;
* <li>Add in your pipeline a new ChannelTrafficShapingHandler, before a recommended {@link ExecutionHandler} (like
* {@link OrderedMemoryAwareThreadPoolExecutor} or {@link MemoryAwareThreadPoolExecutor}).<br>
* <tt>ChannelTrafficShapingHandler myHandler = new ChannelTrafficShapingHandler(timer);</tt><br>
* timer could be created using <tt>HashedWheelTimer<tt><br>
* timer could be created using <tt>HashedWheelTimer</tt><br>
* <tt>pipeline.addLast("CHANNEL_TRAFFIC_SHAPING", myHandler);</tt><br><br>
*
* <b>Note that this handler has a Pipeline Coverage of "one" which means a new handler must be created

View File

@ -31,7 +31,7 @@ import io.netty.util.Timer;
* <ul>
* <li>Create your unique GlobalTrafficShapingHandler like:<br><br>
* <tt>GlobalTrafficShapingHandler myHandler = new GlobalTrafficShapingHandler(timer);</tt><br><br>
* timer could be created using <tt>HashedWheelTimer<tt><br>
* timer could be created using <tt>HashedWheelTimer</tt><br>
* <tt>pipeline.addLast("GLOBAL_TRAFFIC_SHAPING", myHandler);</tt><br><br>
*
* <b>Note that this handler has a Pipeline Coverage of "all" which means only one such handler must be created

View File

@ -113,7 +113,7 @@ public class TrafficCounter {
/**
* used in stop() to cancel the timer
*/
volatile private Timeout timeout = null;
private volatile Timeout timeout;
/**
* Is Monitor active

View File

@ -36,7 +36,7 @@
*
* The insertion in the pipeline of one of those handlers can be wherever you want, but
* <b>it must be placed before any <tt>{@link MemoryAwareThreadPoolExecutor}</tt>
* in your pipeline</b>.</li><br>
* in your pipeline</b>.<br>
* <b><i>It is really recommended to have such a</i> <tt>{@link MemoryAwareThreadPoolExecutor}</tt>
* <i>(either non ordered or </i> <tt>{@link OrderedMemoryAwareThreadPoolExecutor}</tt>
* <i>) in your pipeline</i></b>
@ -76,7 +76,7 @@
*
* <P>So in your application you will create your own TrafficShapingHandler and set the values to fit your needs.</P>
* <tt>XXXXXTrafficShapingHandler myHandler = new XXXXXTrafficShapingHandler(timer);</tt><br><br>
* timer could be created using <tt>HashedWheelTimer<tt> and XXXXX could be either
* timer could be created using <tt>HashedWheelTimer</tt> and XXXXX could be either
* Global or Channel<br>
* <tt>pipeline.addLast("XXXXX_TRAFFIC_SHAPING", myHandler);</tt><br>
* <tt>...</tt><br>