org.apache.batik.util

Interface RunnableQueue.IdleRunnable

public interface RunnableQueue.IdleRunnable extends Runnable

A Runnable that can also inform the caller how long it should be until it is run again.
Method Summary
longgetWaitTime()
Returns the system time that can be safely waited until before this Runnable is run again.

Method Detail

getWaitTime

public long getWaitTime()
Returns the system time that can be safely waited until before this Runnable is run again.

Returns: time to wait until, 0 if no waiting can be done, or Long#MAX_VALUE if the Runnable should not be run again at this time

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.