クラス 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 StringSEBATCH_FORMAT_LENGTH_HEADER4static StringSECONTENT_TYPE_BYTESstatic StringSECONTENT_TYPE_JSONstatic StringSECONTENT_TYPE_JSON_ALTstatic StringSECONTENT_TYPE_SERIALIZED_OBJECTstatic StringSECONTENT_TYPE_TEXT_PLAINstatic StringSECONTENT_TYPE_XMLstatic StringSEDEFAULT_CONTENT_TYPEstatic MessageDeliveryModeDEFAULT_DELIVERY_MODEstatic IntegerSEDEFAULT_PRIORITYstatic StringSESPRING_AUTO_DECOMPRESSstatic StringSESPRING_BATCH_FORMATstatic StringSEX_DELAY
コンストラクター概要
コンストラクター コンストラクター 説明 MessageProperties()
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 booleanequals(ObjectSE obj)StringSEgetAppId()StringSEgetClusterId()StringSEgetConsumerQueue()StringSEgetConsumerTag()StringSEgetContentEncoding()longgetContentLength()StringSEgetContentType()StringSEgetCorrelationId()相関 ID を取得します。IntegerSEgetDelay()x-delay ヘッダー (送信)。MessageDeliveryModegetDeliveryMode()longgetDeliveryTag()StringSEgetExpiration()<T> TgetHeader(StringSE headerName)ヘッダーに getter と入力しました。MapSE<StringSE,ObjectSE>getHeaders()TypeSEgetInferredArgumentType()メソッドレベルの@RabbitListenerを使用する場合に推定されるターゲット引数の型。IntegerSEgetMessageCount()キューに残っているメッセージ数のサーバーの最新の見積もりを返します。StringSEgetMessageId()IntegerSEgetPriority()longgetPublishSequenceNumber()パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を返します。テンプレートで設定。IntegerSEgetReceivedDelay()遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。MessageDeliveryModegetReceivedDeliveryMode()StringSEgetReceivedExchange()StringSEgetReceivedRoutingKey()StringSEgetReceivedUserId()受信メッセージからユーザー ID を返します。BooleanSEgetRedelivered()StringSEgetReplyTo()AddressgetReplyToAddress()ObjectSEgetTargetBean()@RabbitListenerを使用する場合のターゲット Bean。MethodSEgetTargetMethod()@RabbitListenerを使用する場合のターゲットメソッド。DateSEgetTimestamp()StringSEgetType()StringSEgetUserId()ListSE<MapSE<StringSE,?>>getXDeathHeader()x-death ヘッダーを返します。inthashCode()protected booleanisContentLengthSet()protected booleanisDeliveryTagSet()booleanisFinalRetryForMessageWithNoId()booleanisLastInBatch()true の場合。これらのプロパティを持つメッセージは、バッチからの最後のメッセージです。booleanisProjectionUsed()変換が射影を使用したことを伝えるために使用される内部フラグを取得します。アプリケーションレベルでは常に false です。BooleanSEisRedelivered()voidsetAppId(StringSE appId)voidsetClusterId(StringSE clusterId)voidsetConsumerQueue(StringSE consumerQueue)voidsetConsumerTag(StringSE consumerTag)voidsetContentEncoding(StringSE contentEncoding)voidsetContentLength(long contentLength)voidsetContentType(StringSE contentType)voidsetCorrelationId(StringSE correlationId)相関 ID を設定します。voidsetDelay(IntegerSE delay)x-delay ヘッダーを設定します。voidsetDeliveryMode(MessageDeliveryMode deliveryMode)voidsetDeliveryTag(long deliveryTag)voidsetExpiration(StringSE expiration)voidsetFinalRetryForMessageWithNoId(boolean finalRetryForMessageWithNoId)voidsetHeader(StringSE key, ObjectSE value)voidsetInferredArgumentType(TypeSE inferredArgumentType)メソッドレベルの@RabbitListenerを使用する場合は、推定されるターゲット引数の型を設定します。voidsetLastInBatch(boolean lastInBatch)これらのプロパティがバッチ内の最後のメッセージ用であることを示すには、true に設定します。voidsetMessageCount(IntegerSE messageCount)メッセージ数を設定します。voidsetMessageId(StringSE messageId)voidsetPriority(IntegerSE priority)voidsetProjectionUsed(boolean projectionUsed)変換が射影を使用したことを伝えるために使用される内部フラグを設定します。アプリケーションレベルでは常に false です。voidsetPublishSequenceNumber(long publishSequenceNumber)パブリッシャーの確認が有効になっている場合は、パブリッシュシーケンス番号を設定します。テンプレートで設定。voidsetReceivedDelay(IntegerSE receivedDelay)遅延メッセージ交換が使用される場合、受信メッセージの x-delay ヘッダーに遅延が含まれます。voidsetReceivedDeliveryMode(MessageDeliveryMode receivedDeliveryMode)voidsetReceivedExchange(StringSE receivedExchange)voidsetReceivedRoutingKey(StringSE receivedRoutingKey)voidsetReceivedUserId(StringSE receivedUserId)voidsetRedelivered(BooleanSE redelivered)voidsetReplyTo(StringSE replyTo)voidsetReplyToAddress(Address replyTo)voidsetTargetBean(ObjectSE targetBean)@RabbitListenerを使用する場合は、対象の Bean を設定します。voidsetTargetMethod(MethodSE targetMethod)@RabbitListenerを使用する場合のターゲットメソッドを設定します。voidsetTimestamp(DateSE timestamp)voidsetType(StringSE type)voidsetUserId(StringSE userId)StringSEtoString()
フィールドの詳細
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