Examples of confirmSelect()


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

    }

    @Override
    protected Channel provideChannel() throws IOException {
        Channel channel = super.provideChannel();
        channel.confirmSelect();
        return channel;
    }
}
View Full Code Here

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

    @Override
    public void publish(EventMessage... events) {
        final Channel channel = connectionFactory.createConnection().createChannel(isTransactional);
        try {
            if (waitForAck) {
                channel.confirmSelect();
            }
            for (EventMessage event : events) {
                AMQPMessage amqpMessage = messageConverter.createAMQPMessage(event);
                doSendMessage(channel, amqpMessage);
            }
View Full Code Here

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

  private Channel doCreateBareChannel(ChannelCachingConnectionProxy connection, boolean transactional) {
    Channel channel = connection.createBareChannel(transactional);
    if (this.publisherConfirms) {
      try {
        channel.confirmSelect();
      }
      catch (IOException e) {
        logger.error("Could not configure the channel to receive publisher confirms", e);
      }
    }
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.