Cancel Thread.sleep in timer task

I schedule a timertask using timer and in that progress I use Thread.sleep( 10*60000) -> Sleep for ten minutes. And few times I need to cancel the running timertask and schedule a new one, as my timer task is in Thread.sleep for ten minutes I am unable to cancel the sleeping thread in timetask using .cancel(). Please something help me :(

链接地址: http://www.djcxy.com/p/74870.html

上一篇: 形成seq(文本)绑定

下一篇: 取消定时器任务中的Thread.sleep