クラス MessageProperties
- java.lang.ObjectSE
-
- org.springframework.amqp.core.MessageProperties
- 実装されたすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
StreamMessageProperties
public class MessageProperties extends ObjectSE implements SerializableSE
AMQP メッセージのメッセージプロパティ。- 作成者:
- Mark Fisher, Mark Pollack, Gary Russell, Dmitry Chernyshov, Artem Bilan, Csaba Soti
- 関連事項:
- 直列化された形式
フィールドサマリー
フィールド 修飾子と型 フィールド 説明 static StringSE
BATCH_FORMAT_LENGTH_HEADER4
static StringSE
CONTENT_TYPE_BYTES
static StringSE
CONTENT_TYPE_JSON
static StringSE
CONTENT_TYPE_JSON_ALT
static StringSE
CONTENT_TYPE_SERIALIZED_OBJECT
static StringSE
CONTENT_TYPE_TEXT_PLAIN
static StringSE
CONTENT_TYPE_XML
static StringSE
DEFAULT_CONTENT_TYPE
static MessageDeliveryMode
DEFAULT_DELIVERY_MODE
static IntegerSE
DEFAULT_PRIORITY
static StringSE
SPRING_AUTO_DECOMPRESS
static StringSE
SPRING_BATCH_FORMAT
static StringSE
X_DELAY
コンストラクターのサマリー
コンストラクター コンストラクター 説明 MessageProperties()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 boolean
equals(ObjectSE obj)
StringSE
getAppId()
StringSE
getClusterId()
StringSE
getConsumerQueue()
StringSE
getConsumerTag()
StringSE
getContentEncoding()
long
getContentLength()
StringSE
getContentType()
StringSE
getCorrelationId()
相関 ID を取得します。IntegerSE
getDelay()
x-delay ヘッダー (送信)。MessageDeliveryMode
getDeliveryMode()
long
getDeliveryTag()
StringSE
getExpiration()
<T> T
getHeader(StringSE headerName)
ヘッダーに getter と入力しました。MapSE<StringSE,ObjectSE>
getHeaders()
TypeSE
getInferredArgumentType()
メソッドレベルの@RabbitListener
を使用する場合に推定されるターゲット引数の型。IntegerSE
getMessageCount()
キューに残っているメッセージ数のサーバーの最新の見積もりを返します。StringSE
getMessageId()
IntegerSE
getPriority()
long
getPublishSequenceNumber()
パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を返します。テンプレートで設定。IntegerSE
getReceivedDelay()
遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。MessageDeliveryMode
getReceivedDeliveryMode()
StringSE
getReceivedExchange()
StringSE
getReceivedRoutingKey()
StringSE
getReceivedUserId()
受信メッセージからユーザー ID を返します。BooleanSE
getRedelivered()
StringSE
getReplyTo()
Address
getReplyToAddress()
ObjectSE
getTargetBean()
@RabbitListener
を使用する場合のターゲット Bean。MethodSE
getTargetMethod()
@RabbitListener
を使用する場合のターゲットメソッド。DateSE
getTimestamp()
StringSE
getType()
StringSE
getUserId()
ListSE<MapSE<StringSE,?>>
getXDeathHeader()
x-death ヘッダーを返します。int
hashCode()
protected boolean
isContentLengthSet()
protected boolean
isDeliveryTagSet()
boolean
isFinalRetryForMessageWithNoId()
boolean
isLastInBatch()
true の場合。これらのプロパティを持つメッセージは、バッチからの最後のメッセージです。boolean
isProjectionUsed()
変換が射影を使用したことを伝えるために使用される内部フラグを取得します。アプリケーションレベルでは常に false です。BooleanSE
isRedelivered()
void
setAppId(StringSE appId)
void
setClusterId(StringSE clusterId)
void
setConsumerQueue(StringSE consumerQueue)
void
setConsumerTag(StringSE consumerTag)
void
setContentEncoding(StringSE contentEncoding)
void
setContentLength(long contentLength)
void
setContentType(StringSE contentType)
void
setCorrelationId(StringSE correlationId)
相関 ID を設定します。void
setDelay(IntegerSE delay)
x-delay ヘッダーを設定します。void
setDeliveryMode(MessageDeliveryMode deliveryMode)
void
setDeliveryTag(long deliveryTag)
void
setExpiration(StringSE expiration)
void
setFinalRetryForMessageWithNoId(boolean finalRetryForMessageWithNoId)
void
setHeader(StringSE key, ObjectSE value)
void
setInferredArgumentType(TypeSE inferredArgumentType)
メソッドレベルの@RabbitListener
を使用する場合は、推定されるターゲット引数の型を設定します。void
setLastInBatch(boolean lastInBatch)
これらのプロパティがバッチ内の最後のメッセージ用であることを示すには、true に設定します。void
setMessageCount(IntegerSE messageCount)
メッセージ数を設定します。void
setMessageId(StringSE messageId)
void
setPriority(IntegerSE priority)
void
setProjectionUsed(boolean projectionUsed)
変換が射影を使用したことを伝えるために使用される内部フラグを設定します。アプリケーションレベルでは常に false です。void
setPublishSequenceNumber(long publishSequenceNumber)
パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を設定します。テンプレートで設定。void
setReceivedDelay(IntegerSE receivedDelay)
遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。void
setReceivedDeliveryMode(MessageDeliveryMode receivedDeliveryMode)
void
setReceivedExchange(StringSE receivedExchange)
void
setReceivedRoutingKey(StringSE receivedRoutingKey)
void
setReceivedUserId(StringSE receivedUserId)
void
setRedelivered(BooleanSE redelivered)
void
setReplyTo(StringSE replyTo)
void
setReplyToAddress(Address replyTo)
void
setTargetBean(ObjectSE targetBean)
@RabbitListener
を使用する場合は、対象の Bean を設定します。void
setTargetMethod(MethodSE targetMethod)
@RabbitListener
を使用する場合のターゲットメソッドを設定します。void
setTimestamp(DateSE timestamp)
void
setType(StringSE type)
void
setUserId(StringSE userId)
StringSE
toString()
フィールドの詳細
CONTENT_TYPE_SERIALIZED_OBJECT
public static final StringSE CONTENT_TYPE_SERIALIZED_OBJECT
- 関連事項:
- 定数フィールド値
DEFAULT_DELIVERY_MODE
public static final MessageDeliveryMode DEFAULT_DELIVERY_MODE
DEFAULT_PRIORITY
public static final IntegerSE DEFAULT_PRIORITY
メソッドの詳細
getHeader
public <T> T getHeader(StringSE headerName)
ヘッダーに getter と入力しました。- 型パラメーター:
T
- 型。- パラメーター:
headerName
- ヘッダー名。- 戻り値:
- ヘッダー値
- 導入:
- 2.2
setTimestamp
public void setTimestamp(DateSE timestamp)
getTimestamp
public DateSE getTimestamp()
setMessageId
public void setMessageId(StringSE messageId)
getMessageId
public StringSE getMessageId()
setUserId
public void setUserId(StringSE userId)
getUserId
public StringSE getUserId()
getReceivedUserId
public StringSE getReceivedUserId()
受信メッセージからユーザー ID を返します。- 戻り値:
- ユーザー ID。
- 導入:
- 1.6
setReceivedUserId
public void setReceivedUserId(StringSE receivedUserId)
setAppId
public void setAppId(StringSE appId)
getAppId
public StringSE getAppId()
setClusterId
public void setClusterId(StringSE clusterId)
getClusterId
public StringSE getClusterId()
setType
public void setType(StringSE type)
getType
public StringSE getType()
setCorrelationId
public void setCorrelationId(StringSE correlationId)
相関 ID を設定します。- パラメーター:
correlationId
- ID。
getCorrelationId
public StringSE getCorrelationId()
相関 ID を取得します。- 戻り値:
- ID。
setReplyTo
public void setReplyTo(StringSE replyTo)
getReplyTo
public StringSE getReplyTo()
setReplyToAddress
public void setReplyToAddress(Address replyTo)
getReplyToAddress
public Address getReplyToAddress()
setContentType
public void setContentType(StringSE contentType)
getContentType
public StringSE getContentType()
setContentEncoding
public void setContentEncoding(StringSE contentEncoding)
getContentEncoding
public StringSE getContentEncoding()
setContentLength
public void setContentLength(long contentLength)
getContentLength
public long getContentLength()
isContentLengthSet
protected final boolean isContentLengthSet()
setDeliveryMode
public void setDeliveryMode(MessageDeliveryMode deliveryMode)
getDeliveryMode
public MessageDeliveryMode getDeliveryMode()
getReceivedDeliveryMode
public MessageDeliveryMode getReceivedDeliveryMode()
setReceivedDeliveryMode
public void setReceivedDeliveryMode(MessageDeliveryMode receivedDeliveryMode)
setExpiration
public void setExpiration(StringSE expiration)
getExpiration
public StringSE getExpiration()
setPriority
public void setPriority(IntegerSE priority)
getPriority
public IntegerSE getPriority()
setReceivedExchange
public void setReceivedExchange(StringSE receivedExchange)
getReceivedExchange
public StringSE getReceivedExchange()
setReceivedRoutingKey
public void setReceivedRoutingKey(StringSE receivedRoutingKey)
getReceivedRoutingKey
public StringSE getReceivedRoutingKey()
getReceivedDelay
public IntegerSE getReceivedDelay()
遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。- 戻り値:
- 受け取った遅延。
- 導入:
- 1.6
- 関連事項:
getDelay()
setReceivedDelay
public void setReceivedDelay(IntegerSE receivedDelay)
遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。- パラメーター:
receivedDelay
- 受け取った遅延。- 導入:
- 1.6
setRedelivered
public void setRedelivered(BooleanSE redelivered)
isRedelivered
public BooleanSE isRedelivered()
getRedelivered
public BooleanSE getRedelivered()
setDeliveryTag
public void setDeliveryTag(long deliveryTag)
getDeliveryTag
public long getDeliveryTag()
isDeliveryTagSet
protected final boolean isDeliveryTagSet()
setMessageCount
public void setMessageCount(IntegerSE messageCount)
メッセージ数を設定します。- パラメーター:
messageCount
- カウント- 関連事項:
getMessageCount()
getMessageCount
public IntegerSE getMessageCount()
キューに残っているメッセージ数のサーバーの最新の見積もりを返します。basicGet
経由で取得されたメッセージにのみ適用されます。- 戻り値:
- カウント。
getConsumerTag
public StringSE getConsumerTag()
setConsumerTag
public void setConsumerTag(StringSE consumerTag)
getConsumerQueue
public StringSE getConsumerQueue()
setConsumerQueue
public void setConsumerQueue(StringSE consumerQueue)
getDelay
public IntegerSE getDelay()
x-delay ヘッダー (送信)。- 戻り値:
- 遅延。
- 導入:
- 1.6
- 関連事項:
getReceivedDelay()
setDelay
public void setDelay(IntegerSE delay)
x-delay ヘッダーを設定します。- パラメーター:
delay
- 遅延。- 導入:
- 1.6
isFinalRetryForMessageWithNoId
public boolean isFinalRetryForMessageWithNoId()
setFinalRetryForMessageWithNoId
public void setFinalRetryForMessageWithNoId(boolean finalRetryForMessageWithNoId)
getPublishSequenceNumber
public long getPublishSequenceNumber()
パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を返します。テンプレートで設定。- 戻り値:
- シーケンス番号。
- 導入:
- 2.1
setPublishSequenceNumber
public void setPublishSequenceNumber(long publishSequenceNumber)
パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を設定します。テンプレートで設定。- パラメーター:
publishSequenceNumber
- シーケンス番号。- 導入:
- 2.1
getInferredArgumentType
public TypeSE getInferredArgumentType()
メソッドレベルの@RabbitListener
を使用する場合に推定されるターゲット引数の型。- 戻り値:
- 型。
- 導入:
- 1.6
setInferredArgumentType
public void setInferredArgumentType(TypeSE inferredArgumentType)
メソッドレベルの@RabbitListener
を使用する場合は、推定されるターゲット引数の型を設定します。- パラメーター:
inferredArgumentType
- 型。- 導入:
- 1.6
getTargetMethod
public MethodSE getTargetMethod()
@RabbitListener
を使用する場合のターゲットメソッド。- 戻り値:
- メソッド。
- 導入:
- 1.6
setTargetMethod
public void setTargetMethod(MethodSE targetMethod)
@RabbitListener
を使用する場合のターゲットメソッドを設定します。- パラメーター:
targetMethod
- ターゲットメソッド。- 導入:
- 1.6
getTargetBean
public ObjectSE getTargetBean()
@RabbitListener
を使用する場合のターゲット Bean。- 戻り値:
- Bean。
- 導入:
- 1.6
setTargetBean
public void setTargetBean(ObjectSE targetBean)
@RabbitListener
を使用する場合は、対象の Bean を設定します。- パラメーター:
targetBean
- Bean。- 導入:
- 1.6
isLastInBatch
public boolean isLastInBatch()
true の場合。これらのプロパティを持つメッセージは、バッチからの最後のメッセージです。- 戻り値:
- 最後のメッセージの場合は true。
- 導入:
- 2.2
setLastInBatch
public void setLastInBatch(boolean lastInBatch)
これらのプロパティがバッチ内の最後のメッセージ用であることを示すには、true に設定します。- パラメーター:
lastInBatch
- 最後に当てはまります。- 導入:
- 2.2
isProjectionUsed
public boolean isProjectionUsed()
変換が射影を使用したことを伝えるために使用される内部フラグを取得します。アプリケーションレベルでは常に false です。- 戻り値:
- 射影が使用された場合は true。
- 導入:
- 2.2.20
setProjectionUsed
public void setProjectionUsed(boolean projectionUsed)
変換が射影を使用したことを伝えるために使用される内部フラグを設定します。アプリケーションレベルでは常に false です。- パラメーター:
projectionUsed
- 射影の場合は true。- 導入:
- 2.2.20