void createGlobalTrafficCounter ( ScheduledExecutorService executor ) { // Default setMaxDeviation ( DEFAULT_DEVIATION , DEFAULT_SLOWDOWN , DEFAULT_ACCELERATION ) ; if ( executor == null ) { throw new IllegalArgumentException ( "Executor must not be null" ) ; } TrafficCounter tc = new GlobalChannelTrafficCounter ( this , executor , "GlobalChannelTC" , checkInterval ) ; setTrafficCounter ( tc ) ; tc . start ( ) ; }
Create the global TrafficCounter