public void resume() throws Exception { if (context.isSuspended()) { context.resume(); } else { throw new IllegalStateException("CamelContext is not suspended"); } }
public void start() throws Exception { if (context.isSuspended()) { context.resume(); } else { context.start(); } }