Package io.iron.ironmq

Examples of io.iron.ironmq.Client.queue()


      return;
    }

    log.info(getLogHead() + "starting IronMqReceiver ... ");
    Client ironMqClient = new Client(configuration.getProjectId(), configuration.getToken());
    queue = ironMqClient.queue(configuration.getQueueName());

    consumerThreads = new ArrayList<Thread>(configuration.getNumConsumerThreads());
    for (int i = 0; i < configuration.getNumConsumerThreads(); i++) {
      log.info(getLogHead() + "starting consumer thread " + i);
      Thread consumerThread = new Thread(new IronMqMessageConsumer());
View Full Code Here


  }

  @Override
  public void process(Message message) throws Exception {
    Client client = new Client(configuration.getProjectId(), configuration.getToken());
    Queue queue = client.queue(configuration.getQueueName());

    queue.push(message.getProperty("body", String.class));
  }

  @Override
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.