Codota Logo
AsyncRabbitTemplate$RabbitConverterFuture.startTimer
Code IndexAdd Codota to your IDE (free)

How to use
startTimer
method
in
org.springframework.amqp.rabbit.AsyncRabbitTemplate$RabbitConverterFuture

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-amqp

private <C> RabbitConverterFuture<C> convertSendAndReceive(String exchange, String routingKey, Object object,
    MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) {
  AsyncCorrelationData<C> correlationData = new AsyncCorrelationData<C>(messagePostProcessor, responseType,
      this.enableConfirms);
  if (this.container != null) {
    this.template.convertAndSend(exchange, routingKey, object, this.messagePostProcessor, correlationData);
  }
  else {
    MessageConverter converter = this.template.getMessageConverter();
    if (converter == null) {
      throw new AmqpIllegalStateException(
          "No 'messageConverter' specified. Check configuration of RabbitTemplate.");
    }
    Message message = converter.toMessage(object, new MessageProperties());
    this.messagePostProcessor.postProcessMessage(message, correlationData);
    ChannelHolder channelHolder = this.directReplyToContainer.getChannelHolder();
    correlationData.future.setChannelHolder(channelHolder);
    sendDirect(channelHolder.getChannel(), exchange, routingKey, message, correlationData);
  }
  RabbitConverterFuture<C> future = correlationData.future;
  future.startTimer();
  return future;
}
origin: org.springframework.amqp/spring-rabbit

private <C> RabbitConverterFuture<C> convertSendAndReceive(String exchange, String routingKey, Object object,
    MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) {
  AsyncCorrelationData<C> correlationData = new AsyncCorrelationData<C>(messagePostProcessor, responseType,
      this.enableConfirms);
  if (this.container != null) {
    this.template.convertAndSend(exchange, routingKey, object, this.messagePostProcessor, correlationData);
  }
  else {
    MessageConverter converter = this.template.getMessageConverter();
    if (converter == null) {
      throw new AmqpIllegalStateException(
          "No 'messageConverter' specified. Check configuration of RabbitTemplate.");
    }
    Message message = converter.toMessage(object, new MessageProperties());
    this.messagePostProcessor.postProcessMessage(message, correlationData);
    ChannelHolder channelHolder = this.directReplyToContainer.getChannelHolder();
    correlationData.future.setChannelHolder(channelHolder);
    sendDirect(channelHolder.getChannel(), exchange, routingKey, message, correlationData);
  }
  RabbitConverterFuture<C> future = correlationData.future;
  future.startTimer();
  return future;
}
org.springframework.amqp.rabbitAsyncRabbitTemplate$RabbitConverterFuturestartTimer

Popular methods of AsyncRabbitTemplate$RabbitConverterFuture

  • set
  • <init>
  • getReturnType
  • setChannelHolder
  • setConfirm
  • setReturnType
  • addCallback
  • cancel
  • get
  • getConfirm
  • getNackCause
  • isCancelled
  • getNackCause,
  • isCancelled

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now