/** * Sends an AMQP 1.0 message to the peer and waits for the disposition indicating * the outcome of the transfer. * <p> * This default implementation simply returns the result of {@link #sendAndWaitForOutcome(Message)}. * * @param message The message to send. * @param context The currently active OpenTracing span. An implementation * should use this as the parent for any span it creates for tracing * the execution of this operation. * @return A future indicating the outcome of the operation. * <p> * The future will be succeeded if the message has been accepted (and settled) * by the peer. * <p> * The future will be failed with a {@link ServerErrorException} if the message * could not be sent due to a lack of credit. * If an event is sent which cannot be processed by the peer the future will * be failed with either a {@code ServerErrorException} or a {@link ClientErrorException} * depending on the reason for the failure to process the message. * @throws NullPointerException if message is {@code null}. */ default Future<ProtonDelivery> sendAndWaitForOutcome(Message message, SpanContext context) { return sendAndWaitForOutcome(message); }
tokenTracker.result(), ttd); return sender.sendAndWaitForOutcome(msg, context); } else {
tokenTracker.result(), ttd); return sender.sendAndWaitForOutcome(msg, context); } else {
} else { return sender.sendAndWaitForOutcome(downstreamMessage, currentSpan.context());
if (waitForOutcome) { return sender.sendAndWaitForOutcome(downstreamMessage); } else { return sender.send(downstreamMessage);
return sender.sendAndWaitForOutcome(downstreamMessage, currentSpan.context()); } else { return sender.send(downstreamMessage, currentSpan.context());
currentSpan.setTag(Constants.HEADER_QOS_LEVEL, qosHeaderValue); return CompositeFuture.all( sender.sendAndWaitForOutcome(downstreamMessage, currentSpan.context()), responseReady) .map(s -> (Void) null);
currentSpan.setTag(Constants.HEADER_QOS_LEVEL, qosHeaderValue); return CompositeFuture.all( sender.sendAndWaitForOutcome(downstreamMessage, currentSpan.context()), responseReady) .map(s -> (Void) null);
return sender.sendAndWaitForOutcome(downstreamMessage, currentSpan.context()); } else { return sender.send(downstreamMessage, currentSpan.context());