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

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

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

origin: spring-projects/spring-amqp

@Override
public RabbitMessageFuture sendAndReceive(String exchange, String routingKey, Message message) {
  String correlationId = getOrSetCorrelationIdAndSetReplyTo(message);
  RabbitMessageFuture future = new RabbitMessageFuture(correlationId, message);
  CorrelationData correlationData = null;
  if (this.enableConfirms) {
    correlationData = new CorrelationData(correlationId);
    future.setConfirm(new SettableListenableFuture<>());
  }
  this.pending.put(correlationId, future);
  if (this.container != null) {
    this.template.send(exchange, routingKey, message, correlationData);
  }
  else {
    ChannelHolder channelHolder = this.directReplyToContainer.getChannelHolder();
    future.setChannelHolder(channelHolder);
    sendDirect(channelHolder.getChannel(), exchange, routingKey, message, correlationData);
  }
  future.startTimer();
  return future;
}
origin: org.springframework.amqp/spring-rabbit

@Override
public RabbitMessageFuture sendAndReceive(String exchange, String routingKey, Message message) {
  String correlationId = getOrSetCorrelationIdAndSetReplyTo(message);
  RabbitMessageFuture future = new RabbitMessageFuture(correlationId, message);
  CorrelationData correlationData = null;
  if (this.enableConfirms) {
    correlationData = new CorrelationData(correlationId);
    future.setConfirm(new SettableListenableFuture<>());
  }
  this.pending.put(correlationId, future);
  if (this.container != null) {
    this.template.send(exchange, routingKey, message, correlationData);
  }
  else {
    ChannelHolder channelHolder = this.directReplyToContainer.getChannelHolder();
    future.setChannelHolder(channelHolder);
    sendDirect(channelHolder.getChannel(), exchange, routingKey, message, correlationData);
  }
  future.startTimer();
  return future;
}
org.springframework.amqp.rabbitAsyncRabbitTemplate$RabbitMessageFuturesetConfirm

Popular methods of AsyncRabbitTemplate$RabbitMessageFuture

  • <init>
  • getConfirm
  • addCallback
  • getNackCause
  • set
  • setChannelHolder
  • 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
  • From CI to AI: The AI layer in your organization
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