Package routines.system.api

Examples of routines.system.api.ESBJobInterruptedException


    public Object getRequest() throws ESBJobInterruptedException {
        try {
            currentExchange = messageExchanges.take();
        } catch (BufferStoppedException e) {
            Thread.currentThread().interrupt();
            throw new ESBJobInterruptedException("Job canceled.");
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            throw new ESBJobInterruptedException("Job canceled.");
        }
        return currentExchange.getRequest();
    }
View Full Code Here


            System.out.println("ESB [provider]: Giving a request to Job...");
            return getDocument("<jobInput xmlns='http://talend.org/esb/service/job'>xxx</jobInput>");
          }

          System.out.println("ESB [provider]: Now I want to stop the Job...");
          throw new ESBJobInterruptedException("Stop processing");
        }

        public void sendResponse(Object response) {
          System.out.println("ESB [provider]: Have got a response from the Job, sending it...");
          if (response instanceof Exception) {
View Full Code Here

TOP

Related Classes of routines.system.api.ESBJobInterruptedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.