return createReceiver(source, qos, prefetch, UUID.randomUUID().toString());
}
public AmqpReceiver createReceiver(Source source, QoS qos, int prefetch, String name) {
assertExecuting();
ReceiverImpl receiver = session.receiver(name);
receiver.setSource(source);
// Target target = new Target();
// target.setAddress(UUID.randomUUID().toString());
// receiver.setTarget(target);
receiver.flow(prefetch);
configureQos(receiver, qos);
receiver.open();
pumpOut();
return new AmqpReceiver(this, receiver, qos);
}