final String queue = (String) parameters[0];
final boolean autoAck = (Boolean) parameters[1];
final String clientId = (String) parameters[2];
final Channel channel = AmqpOperationFactory.this.amqpDriver.getChannel (clientId);
if (channel != null) {
GetResponse outcome = null;
try {
outcome = channel.basicGet (queue, autoAck);
if (outcome != null) {
final Envelope envelope = outcome.getEnvelope ();
final AMQP.BasicProperties properties = outcome.getProps ();
message = new AmqpInboundMessage (null, envelope.getDeliveryTag (), envelope.getExchange (), envelope.getRoutingKey (), outcome.getBody (), properties.getDeliveryMode () == 2 ? true : false, properties.getReplyTo (), properties.getContentEncoding (), properties.getContentType (), properties.getCorrelationId (), properties.getMessageId ());
}
} catch (final IOException e) {
AmqpOperationFactory.this.exceptions.traceIgnoredException (e);
}
}