Examples of basicAck()


Examples of com.rabbitmq.client.Channel.basicAck()

        final boolean multiple = (Boolean) parameters[1];
        final String consumer = (String) parameters[2];
        final Channel channel = AmqpOperationFactory.this.amqpDriver.getChannel (consumer);
        if (channel != null) {
          try {
            channel.basicAck (delivery, multiple);
            succeeded = true;
          } catch (final IOException e) {
            AmqpOperationFactory.this.exceptions.traceIgnoredException (e);
          }
        }
View Full Code Here

Examples of com.rabbitmq.client.Channel.basicAck()

          long nano = System.nanoTime();

          Envelope envelope = delivery.getEnvelope();

          if (!autoAck) {
            channel.basicAck(envelope.getDeliveryTag(), false);
          }

          if (txSize != 0 && totalMsgCount % txSize == 0) {
            channel.txCommit();
          }
View Full Code Here

Examples of eu.mosaic_cloud.drivers.queue.amqp.AmqpDriver.basicAck()

        final long delivery = aop.getDelivery ();
        final boolean multiple = aop.getMultiple ();
        AmqpStub.logger.trace ("AmqpStub - Received  ACK "); // $NON-NLS-1$
        // NOTE: execute operation
        final DriverOperationFinishedHandler ackHandler = new DriverOperationFinishedHandler (token, session);
        resultBool = driver.basicAck (token.getClientId (), delivery, multiple, ackHandler);
        ackHandler.setDetails (AmqpOperations.ACK, resultBool);
        break;
      default:
        final DriverOperationFinishedHandler errHandler = new DriverOperationFinishedHandler (null, session);
        driver.handleUnsupportedOperationError (amqpMessage.toString (), errHandler);
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.