litesoft
@ 941
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.core.delayed.nonpublic; import org.litesoft.core.delayed.*; import org.litesoft.core.simpletypes.temporal.*; import org.litesoft.core.util.*; public interface DelayedTimedRunnableRunner { /** * Must be called before: scheduleFor or cancel * * @param pTimedRunnable !null */ public DelayedTimedRunnableRunner initialize( TimedRunnable pTimedRunnable, UnexpectedExceptionHandler pUnexpectedExceptionHandler ); public MillisecTimeSource getMillisecTimeSource(); /** * initialize MUST be called before this method * * @param pWhenTimeInMilliSecs if <= 0 then run NOW!, otherwise run when indicated */ public DelayedTimedRunnableRunner scheduleFor( long pWhenTimeInMilliSecs ); /** * initialize MUST be called before this method */ public void cancel(); } |