Class ConnectorTimerProxy
- java.lang.Object
-
- java.util.Timer
-
- com.sun.enterprise.connectors.util.ConnectorTimerProxy
-
public class ConnectorTimerProxy extends Timer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
static ConnectorTimerProxy
getProxy()
int
purge()
void
schedule(TimerTask task, long delay)
Proxy method to schedule a timer task after a specified delay.void
schedule(TimerTask task, long delay, long period)
Proxy method to schedule a timer task for repeated fixed-delay execution, beginning after the specified delay.void
schedule(TimerTask task, Date time)
Proxy method to schedule a timer task at the specified time.void
schedule(TimerTask task, Date firstTime, long period)
Proxy method to schedule a timer task for repeated fixed-delay execution, beginning after the specified delay.void
scheduleAtFixedRate(TimerTask task, long delay, long period)
Proxy method to schedule a timer task at fixed rate.void
scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
Proxy method to schedule a timer task for repeated fixed-rate execution, beginning after the specified delay.
-
-
-
Method Detail
-
getProxy
public static final ConnectorTimerProxy getProxy()
-
scheduleAtFixedRate
public void scheduleAtFixedRate(TimerTask task, long delay, long period)
Proxy method to schedule a timer task at fixed rate. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.- Overrides:
scheduleAtFixedRate
in classTimer
- Parameters:
task
-delay
-period
-
-
schedule
public void schedule(TimerTask task, long delay)
Proxy method to schedule a timer task after a specified delay. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.
-
schedule
public void schedule(TimerTask task, Date time)
Proxy method to schedule a timer task at the specified time. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.
-
schedule
public void schedule(TimerTask task, long delay, long period)
Proxy method to schedule a timer task for repeated fixed-delay execution, beginning after the specified delay. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.
-
schedule
public void schedule(TimerTask task, Date firstTime, long period)
Proxy method to schedule a timer task for repeated fixed-delay execution, beginning after the specified delay. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.
-
scheduleAtFixedRate
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
Proxy method to schedule a timer task for repeated fixed-rate execution, beginning after the specified delay. The unchecked exceptions are caught here and in such cases, the timer is recreated and task is rescheduled.- Overrides:
scheduleAtFixedRate
in classTimer
- Parameters:
task
-delay
-period
-
-
-