Codota Logo
MessageProperties.setTimestamp
Code IndexAdd Codota to your IDE (free)

How to use
setTimestamp
method
in
org.springframework.amqp.core.MessageProperties

Best Java code snippets using org.springframework.amqp.core.MessageProperties.setTimestamp (Showing top 18 results out of 315)

  • Common ways to obtain MessageProperties
private void myMethod () {
MessageProperties m =
  • Codota Iconnew MessageProperties()
  • Codota IconMessage message;message.getMessageProperties()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-amqp

public MessageBuilderSupport<T> setTimestamp(Date timestamp) {
  this.properties.setTimestamp(timestamp);
  return this;
}
origin: spring-projects/spring-integration

amqpMessageProperties.setTimestamp(timestamp);
  amqpMessageProperties.setTimestamp(new Date(ts));
origin: spring-projects/spring-integration

amqpProperties.setReplyTo("test.replyTo");
Date testTimestamp = new Date();
amqpProperties.setTimestamp(testTimestamp);
amqpProperties.setType("test.type");
amqpProperties.setReceivedUserId("test.userId");
origin: spring-projects/spring-amqp

public MessageBuilderSupport<T> setTimestampIfAbsent(Date timestamp) {
  if (this.properties.getTimestamp() == null) {
    this.properties.setTimestamp(timestamp);
  }
  return this;
}
origin: com.dell.cpsd.common.messaging/common-rabbitmq

/**
 * This makes a <code>MessageProperties</code> with the specified properties.
 *
 * @param timestamp     The timestamp.
 * @param correlationId The correlation identifier.
 * @param replyTo       The reply to destination.
 * @since 1.0
 */
public static MessageProperties makeMessageProperties(final Date timestamp, final String correlationId, final String replyTo)
{
  final MessageProperties messageProperties = new MessageProperties();
  messageProperties.setTimestamp(timestamp);
  messageProperties.setCorrelationIdString(correlationId);
  if (correlationId != null)
  {
    try
    {
      messageProperties.setCorrelationId(correlationId.getBytes("UTF-8"));
    }
    catch (UnsupportedEncodingException exception)
    {
    }
  }
  messageProperties.setReplyTo(replyTo);
  return messageProperties;
}
origin: com.dell.cpsd/common-rabbitmq

/**
 * This makes a <code>MessageProperties</code> with the specified properties.
 *
 * @param timestamp     The timestamp.
 * @param correlationId The correlation identifier.
 * @param replyTo       The reply to destination.
 * @since 1.0
 */
public static MessageProperties makeMessageProperties(final Date timestamp, final String correlationId, final String replyTo)
{
  final MessageProperties messageProperties = new MessageProperties();
  messageProperties.setTimestamp(timestamp);
  messageProperties.setCorrelationIdString(correlationId);
  if (correlationId != null)
  {
    try
    {
      messageProperties.setCorrelationId(correlationId.getBytes("UTF-8"));
    }
    catch (UnsupportedEncodingException exception)
    {
    }
  }
  messageProperties.setReplyTo(replyTo);
  return messageProperties;
}
origin: org.springframework.amqp/spring-rabbit

amqpProps.setTimestamp(tstamp.getTime());
origin: spring-projects/spring-amqp

amqpProps.setTimestamp(tstamp.getTime());
origin: spring-projects/spring-amqp

amqpProps.setTimestamp(tstamp.getTime());
origin: org.springframework.amqp/spring-rabbit

amqpProps.setTimestamp(tstamp.getTime());
origin: org.springframework.integration/spring-integration-amqp

amqpMessageProperties.setTimestamp(timestamp);
  amqpMessageProperties.setTimestamp(new Date(ts));
origin: spring-projects/spring-amqp

amqpMessageProperties.setTimestamp(timestamp);
origin: com.dell.cpsd.common.messaging/common-rabbitmq

  /**
   * {@inheritDoc}
   */
  @Override
  public Message postProcessMessage(final Message message) throws AmqpException
  {
    if (message == null)
    {
      return message;
    }

    final MessageProperties messageProperties = message.getMessageProperties();

    messageProperties.setTimestamp(this.properties.getTimestamp());

    final byte[] correlationId = this.properties.getCorrelationId();
    messageProperties.setCorrelationId(correlationId);

    messageProperties.setCorrelationIdString(this.properties.getCorrelationIdString());

    messageProperties.setReplyTo(this.properties.getReplyTo());
    messageProperties.setExpiration(this.properties.getExpiration());

    return message;
  }
}
origin: com.dell.cpsd/common-rabbitmq

  /**
   * {@inheritDoc}
   */
  @Override
  public Message postProcessMessage(final Message message) throws AmqpException
  {
    if (message == null)
    {
      return message;
    }

    final MessageProperties messageProperties = message.getMessageProperties();

    messageProperties.setTimestamp(this.properties.getTimestamp());

    final byte[] correlationId = this.properties.getCorrelationId();
    messageProperties.setCorrelationId(correlationId);

    messageProperties.setCorrelationIdString(this.properties.getCorrelationIdString());

    messageProperties.setReplyTo(this.properties.getReplyTo());
    messageProperties.setExpiration(this.properties.getExpiration());

    return message;
  }
}
origin: org.springframework.amqp/spring-rabbit

target.setTimestamp(source.getTimestamp());
target.setMessageId(source.getMessageId());
target.setReceivedUserId(source.getUserId());
origin: spring-projects/spring-amqp

target.setTimestamp(source.getTimestamp());
target.setMessageId(source.getMessageId());
target.setReceivedUserId(source.getUserId());
origin: spring-projects/spring-amqp

amqpProperties.setReplyTo("test.replyTo");
Date testTimestamp = new Date();
amqpProperties.setTimestamp(testTimestamp);
amqpProperties.setType("test.type");
amqpProperties.setReceivedUserId("test.userId");
origin: spring-projects/spring-amqp

properties.setRedelivered(true);
properties.setReplyTo("reply-to-1234");
properties.setTimestamp(timestamp);
properties.setType("type-1234");
properties.setReceivedUserId("user-id-1234");
org.springframework.amqp.coreMessagePropertiessetTimestamp

Popular methods of MessageProperties

  • getDeliveryTag
  • <init>
  • setHeader
  • getHeaders
  • setExpiration
  • setContentType
  • getReplyTo
  • getCorrelationId
  • getMessageId
  • getReceivedRoutingKey
  • setCorrelationId
  • setDeliveryMode
  • setCorrelationId,
  • setDeliveryMode,
  • setReplyTo,
  • getConsumerQueue,
  • getReceivedExchange,
  • getContentType,
  • getExpiration,
  • setContentEncoding,
  • setMessageId,
  • getAppId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JButton (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