/** * lets schedule each time to allow folks to change the time at runtime */ protected void schedulePoll() { if (executor != null) { executor.schedule(this, purgePollTime, TimeUnit.MILLISECONDS); } }
protected void scheduleTask() { if (executor != null) { executor.schedule(this, timeoutMillis, TimeUnit.MILLISECONDS); } }
public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return e.schedule(command, delay, unit); } public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) {
public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return e.schedule(callable, delay, unit); } public ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return e.schedule(callable, delay, unit); } public ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return e.schedule(callable, delay, unit); } public ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return e.schedule(command, delay, unit); } public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) {
public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return e.schedule(command, delay, unit); } public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) {
public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return e.schedule(callable, delay, unit); } public ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return e.schedule(command, delay, unit); } public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) {
/** * Implements FlexComponent.start. * Starts the <code>RedeployManager</code>. */ public void start() { if (!started && enabled) { redeployService.schedule(new RedeployTask(), 20 * 1000, TimeUnit.MILLISECONDS); started = true; } }
public void run() { boolean redeploy = false; // check if any of the redeploy watches have changed Iterator iter = watches.iterator(); while (iter.hasNext() && !redeploy) { WatchedObject watched = (WatchedObject)iter.next(); if (!watched.isUptodate()) redeploy = true; } if (redeploy) forceRedeploy(); else redeployService.schedule(new RedeployTask(), watchInterval * 1000, TimeUnit.MILLISECONDS); } }