Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Last active September 20, 2016 13:47
Show Gist options
  • Save mariomartinezricston/91daceac7b3f7ff2f8c38494b44e8264 to your computer and use it in GitHub Desktop.
Save mariomartinezricston/91daceac7b3f7ff2f8c38494b44e8264 to your computer and use it in GitHub Desktop.
Runnable Start
private Runnable createParalelStart(final MuleContextNotification notification) {
final Runnable callFlow = new Runnable() {
public void run() {
try
{
Thread.sleep(4000);
logger.info("Starting up process in 4 second");
executeFlow(notification);
}
catch (InterruptedException e) {e.printStackTrace();}
catch (MuleException e) {e.printStackTrace();}
}
};
return callFlow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment