Package com.sun.identity.common
Class RunnableTimerTask
- java.lang.Object
-
- java.util.TimerTask
-
- com.sun.identity.common.RecoverableTimerTask
-
- com.sun.identity.common.RunnableTimerTask
-
- All Implemented Interfaces:
Runnable
public class RunnableTimerTask extends RecoverableTimerTask
RunnableTimerTask is a TimerTask which will use Recoverable interface whenever Exception or Error may stop the running Timer or make the Timer to an unknown state.
-
-
Field Summary
Fields Modifier and Type Field Description protected Runnabletarget-
Fields inherited from class com.sun.identity.common.RecoverableTimerTask
recoverable
-
-
Constructor Summary
Constructors Constructor Description RunnableTimerTask(Runnable target)Constructor of RunnableTimerTask
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunnablegetRunnable()Returns the runnable interface from this RunnableTimerTaskvoidrun()The run method with error handling and recovery.voidsetRunnable(Runnable target)Assigns the runnable interface to this RunnableTimerTask-
Methods inherited from class com.sun.identity.common.RecoverableTimerTask
setRecoverable
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Field Detail
-
target
protected Runnable target
-
-
Constructor Detail
-
RunnableTimerTask
public RunnableTimerTask(Runnable target)
Constructor of RunnableTimerTask- Parameters:
target- The runnable interface to be run
-
-
Method Detail
-
setRunnable
public void setRunnable(Runnable target)
Assigns the runnable interface to this RunnableTimerTask- Parameters:
target- The runnable to assign
-
getRunnable
public Runnable getRunnable()
Returns the runnable interface from this RunnableTimerTask- Returns:
- Runnable interface assoicated with this RunnableTimerTask
-
-