定時執行調度任務

這裏咱們用JDK 5.0裏的ScheduledExecutorService,它是一個接口,咱們所利用的方法爲 ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) 建立並執行一個在給定初始延遲後首次啓用的按期操做,後續操做
相關文章
相關標籤/搜索