public MessageBuilderSupport<T> setTimestamp(Date timestamp) { this.properties.setTimestamp(timestamp); return this; }
amqpMessageProperties.setTimestamp(timestamp); amqpMessageProperties.setTimestamp(new Date(ts));
amqpProperties.setReplyTo("test.replyTo"); Date testTimestamp = new Date(); amqpProperties.setTimestamp(testTimestamp); amqpProperties.setType("test.type"); amqpProperties.setReceivedUserId("test.userId");
public MessageBuilderSupport<T> setTimestampIfAbsent(Date timestamp) { if (this.properties.getTimestamp() == null) { this.properties.setTimestamp(timestamp); } return this; }
/** * 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; }
/** * 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; }
amqpProps.setTimestamp(tstamp.getTime());
amqpProps.setTimestamp(tstamp.getTime());
amqpProps.setTimestamp(tstamp.getTime());
amqpProps.setTimestamp(tstamp.getTime());
amqpMessageProperties.setTimestamp(timestamp); amqpMessageProperties.setTimestamp(new Date(ts));
amqpMessageProperties.setTimestamp(timestamp);
/** * {@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; } }
/** * {@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; } }
target.setTimestamp(source.getTimestamp()); target.setMessageId(source.getMessageId()); target.setReceivedUserId(source.getUserId());
target.setTimestamp(source.getTimestamp()); target.setMessageId(source.getMessageId()); target.setReceivedUserId(source.getUserId());
amqpProperties.setReplyTo("test.replyTo"); Date testTimestamp = new Date(); amqpProperties.setTimestamp(testTimestamp); amqpProperties.setType("test.type"); amqpProperties.setReceivedUserId("test.userId");
properties.setRedelivered(true); properties.setReplyTo("reply-to-1234"); properties.setTimestamp(timestamp); properties.setType("type-1234"); properties.setReceivedUserId("user-id-1234");