org.apache.batik.util

Interface RunnableQueue.IdleRunnable

public interface RunnableQueue.IdleRunnable extends Runnable

A {@link 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 {@link Runnable} is run again.

Method Detail

getWaitTime

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

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

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