Пример #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();
   }
 }