Package org.mokai

Examples of org.mokai.Processor.process()


        }

        // try to process the message
        long startTime = System.currentTimeMillis();
        Processor processor = (Processor) connector;
        processor.process(message);
        message.setStatus(Message.STATUS_PROCESSED);
        long endTime = System.currentTimeMillis();
        log.debug("[processor=" + id + "] processing message took " + (endTime - startTime) + " millis");

        status = Monitorable.class.isInstance(processor) ? MonitorStatusBuilder.ok() : MonitorStatusBuilder.unknown();
View Full Code Here


      throw new Exception("Message could not be processed: all of the processors failed.");
    }

    try {
      Processor processor = processors.get(index);
      processor.process(message);
    } catch (Exception e) {
      log.error("Processor " + index + " threw exception, trying with the next", e);

      // try with the next processor
      incrementIndex();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.