Package io.iron.ironmq

Examples of io.iron.ironmq.Client


     * implementation
     *
     * @return Client
     */
    Client createClient() {
        client = new Client(configuration.getProjectId(), configuration.getToken(), configuration.getIronMQCloud());
        return client;
    }
View Full Code Here


      log.warn(getLogHead() + "IronMqReceiver is already running");
      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

    return false;
  }

  @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));
  }
View Full Code Here

TOP

Related Classes of io.iron.ironmq.Client

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.