Package org.apache.sling.mailarchiveserver.api

Examples of org.apache.sling.mailarchiveserver.api.Connector


  @Override
  public void run() {
    while (running) {
      executionQueue = new ArrayDeque<Connector>(scheduledConnectors);
      while (!executionQueue.isEmpty() && running) {
        Connector c = executionQueue.remove();
        int retreived = c.checkNewMessages();
        logger.info("Processed {} messages using \"{}\" connector.", retreived, c.toString());
      }
      try {
        TimeUnit.SECONDS.sleep(SLEEP_TIME_BETWEEN_NEW_MAIL_CHECKS);
      } catch (InterruptedException e) {
        running = false;
View Full Code Here

TOP

Related Classes of org.apache.sling.mailarchiveserver.api.Connector

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.