src/main/java/com/alipay/remoting/rpc/RpcTaskScanner.java
public void start() {
        scheduledService.scheduleWithFixedDelay(new Runnable() {

            @Override
            public void run() {
                for (Scannable scanned : scanList) {
                    try {
                        scanned.scan();
                    } catch (Throwable t) {
                        logger.error("Exception caught when scannings.", t);
                    }
                }
            }

        }, 10000, 10000, TimeUnit.MILLISECONDS);
    }
public void start() {
        scheduledService.scheduleWithFixedDelay(new Runnable() {

            @Override
            public void run() {
                for (Scannable scanned : scanList) {
                    try {
                        scanned.scan();
                    } catch (Throwable t) {
                        logger.error("Exception caught when scannings.", t);
                    }
                }
            }

        }, 10000, 10000, TimeUnit.MILLISECONDS);
    }
public void start ( ) { scheduledService . scheduleWithFixedDelay ( new Runnable ( ) { @ Override public void run ( ) { for ( Scannable scanned : scanList ) { try { scanned . scan ( ) ; } catch ( Throwable t ) { logger . error ( "Exception caught when scannings." , t ) ; } } } } , 10000 , 10000 , TimeUnit . MILLISECONDS ) ; }
Start!
Start!