Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Created September 20, 2016 12:47
Show Gist options
  • Save mariomartinezricston/9231c8451e83a1a1a794223abec95d07 to your computer and use it in GitHub Desktop.
Save mariomartinezricston/9231c8451e83a1a1a794223abec95d07 to your computer and use it in GitHub Desktop.
Scheduler Controller
public class SchedulerController implements Callable{
private static final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
private static final Logger logger = Logger.getLogger(SchedulerController.class);
@Override
public Object onCall(MuleEventContext eventContext) throws Exception {
scheduleOneDay(eventContext);
return eventContext.getMessage().getPayload();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment