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