Package eu.mosaic_cloud.drivers.queue.amqp

Examples of eu.mosaic_cloud.drivers.queue.amqp.IAmqpConsumer


        exclusive = cop.getExclusive ();
        autoAck = cop.getAutoAck ();
        AmqpStub.logger.trace ("AmqpStub - Received request for CONSUME"); // $NON-NLS-1$
        // NOTE: execute operation
        final DriverOperationFinishedHandler consHandler = new DriverOperationFinishedHandler (token, session);
        final IAmqpConsumer consumeCallback = new ConsumerHandler (session);
        resultString = driver.basicConsume (queue, consumer, exclusive, autoAck, consumeCallback, consHandler);
        consHandler.setDetails (AmqpOperations.CONSUME, resultString);
        break;
      case GET_REQUEST :
        final AmqpPayloads.GetRequest gop = (GetRequest) message.payload;
View Full Code Here


  {
    final String queue = ConfigUtils.resolveParameter (AmqpDriverTest.configuration, "consumer.amqp.queue", String.class, "");
    final boolean autoAck = ConfigUtils.resolveParameter (AmqpDriverTest.configuration, "consumer.amqp.auto_ack", Boolean.class, true);
    final boolean exclusive = ConfigUtils.resolveParameter (AmqpDriverTest.configuration, "consumer.amqp.exclusive", Boolean.class, true);
    final IOperationCompletionHandler<String> handler = new TestLoggingHandler<String> ("consume");
    final IAmqpConsumer consumeCallback = new ConsumerHandler ();
    final IResult<String> r = this.wrapper.basicConsume (queue, this.clientId, exclusive, autoAck, consumeCallback, handler);
    Assert.assertTrue ("Register consumer", this.clientId.equals (r.getResult ()));
  }
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.drivers.queue.amqp.IAmqpConsumer

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.