Tabnine Logo
AsyncRabbitTemplate$RabbitMessageFuture.getConfirm
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfirm
method
in
org.springframework.amqp.rabbit.AsyncRabbitTemplate$RabbitMessageFuture

Best Java code snippets using org.springframework.amqp.rabbit.AsyncRabbitTemplate$RabbitMessageFuture.getConfirm (Showing top 4 results out of 315)

origin: org.springframework.integration/spring-integration-amqp

@Override
protected Object handleRequestMessage(Message<?> requestMessage) {
  org.springframework.amqp.core.Message amqpMessage = MappingUtils.mapMessage(requestMessage,
      this.messageConverter, getHeaderMapper(), getDefaultDeliveryMode(), isHeadersMappedLast());
  addDelayProperty(requestMessage, amqpMessage);
  RabbitMessageFuture future = this.template.sendAndReceive(generateExchangeName(requestMessage),
      generateRoutingKey(requestMessage), amqpMessage);
  future.addCallback(new FutureCallback(requestMessage));
  CorrelationData correlationData = generateCorrelationData(requestMessage);
  if (correlationData != null && future.getConfirm() != null) {
    future.getConfirm().addCallback(new CorrelationCallback(correlationData, future));
  }
  return null;
}
origin: spring-projects/spring-amqp

@Test
@DirtiesContext
public void testMessageWithConfirmDirect() throws Exception {
  this.asyncDirectTemplate.setEnableConfirms(true);
  RabbitMessageFuture future = this.asyncDirectTemplate
      .sendAndReceive(new SimpleMessageConverter().toMessage("sleep", new MessageProperties()));
  ListenableFuture<Boolean> confirm = future.getConfirm();
  assertNotNull(confirm);
  assertTrue(confirm.get(10, TimeUnit.SECONDS));
  checkMessageResult(future, "SLEEP");
}
origin: spring-projects/spring-amqp

@Test
@DirtiesContext
public void testMessageWithConfirm() throws Exception {
  this.asyncTemplate.setEnableConfirms(true);
  RabbitMessageFuture future = this.asyncTemplate
      .sendAndReceive(new SimpleMessageConverter().toMessage("sleep", new MessageProperties()));
  ListenableFuture<Boolean> confirm = future.getConfirm();
  assertNotNull(confirm);
  assertTrue(confirm.get(10, TimeUnit.SECONDS));
  checkMessageResult(future, "SLEEP");
}
origin: spring-projects/spring-integration

@Override
protected Object handleRequestMessage(Message<?> requestMessage) {
  org.springframework.amqp.core.Message amqpMessage = MappingUtils.mapMessage(requestMessage,
      this.messageConverter, getHeaderMapper(), getDefaultDeliveryMode(), isHeadersMappedLast());
  addDelayProperty(requestMessage, amqpMessage);
  RabbitMessageFuture future = this.template.sendAndReceive(generateExchangeName(requestMessage),
      generateRoutingKey(requestMessage), amqpMessage);
  future.addCallback(new FutureCallback(requestMessage));
  CorrelationData correlationData = generateCorrelationData(requestMessage);
  if (correlationData != null && future.getConfirm() != null) {
    future.getConfirm().addCallback(new CorrelationCallback(correlationData, future));
  }
  return null;
}
org.springframework.amqp.rabbitAsyncRabbitTemplate$RabbitMessageFuturegetConfirm

Popular methods of AsyncRabbitTemplate$RabbitMessageFuture

  • <init>
  • addCallback
  • getNackCause
  • set
  • setChannelHolder
  • setConfirm
  • startTimer

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now