Skip to content

Instantly share code, notes, and snippets.

@nfrankel
Created April 30, 2012 09:32
Show Gist options
  • Save nfrankel/2556842 to your computer and use it in GitHub Desktop.
Save nfrankel/2556842 to your computer and use it in GitHub Desktop.
package com.packtpub.learnvaadin.twaattin.service;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.SchedulerContext;
import org.quartz.SchedulerException;
import com.packtpub.learnvaadin.twaattin.ui.TimelineWindow;
public class TwitterJob implements Job {
public void execute(JobExecutionContext jobContext) throws JobExecutionException {
try {
SchedulerContext schedContext = jobContext.getScheduler().getContext();
TimelineWindow timelineWindow = (TimelineWindow) schedContext.get("window");
timelineWindow.fillAndPush();
} catch (SchedulerException e) {
throw new JobExecutionException(e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment