CorrelationData correlationData = value.getCorrelationData(); if (correlationData != null) { correlationData.getFuture().set(new Confirm(ack, value.getCause())); if (StringUtils.hasText(correlationData.getId())) { this.pendingReturns.remove(correlationData.getId()); // NOSONAR never null
CorrelationData correlationData = pendingConfirm.getCorrelationData(); if (correlationData != null) { correlationData.getFuture().set(new Confirm(ack, pendingConfirm.getCause())); if (StringUtils.hasText(correlationData.getId())) { this.pendingReturns.remove(correlationData.getId()); // NOSONAR never null
CorrelationData correlationData = value.getCorrelationData(); if (correlationData != null) { correlationData.getFuture().set(new Confirm(ack, value.getCause())); if (StringUtils.hasText(correlationData.getId())) { this.pendingReturns.remove(correlationData.getId()); // NOSONAR never null
CorrelationData correlationData = pendingConfirm.getCorrelationData(); if (correlationData != null) { correlationData.getFuture().set(new Confirm(ack, pendingConfirm.getCause())); if (StringUtils.hasText(correlationData.getId())) { this.pendingReturns.remove(correlationData.getId()); // NOSONAR never null
CorrelationData cd1 = new CorrelationData(); this.templateWithConfirmsEnabled.convertAndSend("", queue.getName(), "foo", cd1); assertTrue(cd1.getFuture().get(10, TimeUnit.SECONDS).isAck()); CorrelationData cd2 = new CorrelationData(); this.templateWithConfirmsEnabled.convertAndSend("", queue.getName(), "bar", cd2); assertFalse(cd3.getFuture().get(10, TimeUnit.SECONDS).isAck()); assertThat(cd3.getFuture().get().getReason(), containsString("NOT_FOUND")); CorrelationData cd4 = new CorrelationData("42"); AtomicBoolean resent = new AtomicBoolean(); }); this.templateWithConfirmsAndReturnsEnabled.convertAndSend("", "NO_QUEUE_HERE", "foo", cd4); assertTrue(cd4.getFuture().get(10, TimeUnit.SECONDS).isAck()); assertNotNull(cd4.getReturnedMessage()); assertTrue(resent.get());