Fix private class to static private class (dynamicity is not necessary there)
This commit is contained in:
parent
a1a60ec5b6
commit
7d4a276ab0
@ -117,7 +117,7 @@ public class TrafficCounter {
|
|||||||
/**
|
/**
|
||||||
* Class to implement monitoring at fix delay
|
* Class to implement monitoring at fix delay
|
||||||
*/
|
*/
|
||||||
private class TrafficMonitoring implements Runnable {
|
private static class TrafficMonitoring implements Runnable {
|
||||||
/**
|
/**
|
||||||
* The associated TrafficShapingHandler
|
* The associated TrafficShapingHandler
|
||||||
*/
|
*/
|
||||||
@ -145,8 +145,8 @@ public class TrafficCounter {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
Thread.currentThread().setName(name);
|
Thread.currentThread().setName(counter.name);
|
||||||
for (; monitorActive.get();) {
|
for (; counter.monitorActive.get();) {
|
||||||
long check = counter.checkInterval.get();
|
long check = counter.checkInterval.get();
|
||||||
if (check > 0) {
|
if (check > 0) {
|
||||||
Thread.sleep(check);
|
Thread.sleep(check);
|
||||||
|
Loading…
Reference in New Issue
Block a user