Created
April 30, 2012 09:32
-
-
Save nfrankel/2556842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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