Package com.rabbitmq.client
Class AMQP.BasicProperties
- java.lang.Object
-
- com.rabbitmq.client.impl.AMQContentHeader
-
- com.rabbitmq.client.impl.AMQBasicProperties
-
- com.rabbitmq.client.AMQP.BasicProperties
-
- All Implemented Interfaces:
BasicProperties,ContentHeader,java.lang.Cloneable
- Enclosing interface:
- AMQP
public static class AMQP.BasicProperties extends AMQBasicProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAMQP.BasicProperties.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringappIdprivate java.lang.StringclusterIdprivate java.lang.StringcontentEncodingprivate java.lang.StringcontentTypeprivate java.lang.StringcorrelationIdprivate java.lang.IntegerdeliveryModeprivate java.lang.Stringexpirationprivate java.util.Map<java.lang.String,java.lang.Object>headersprivate java.lang.StringmessageIdprivate java.lang.Integerpriorityprivate java.lang.StringreplyToprivate java.util.Datetimestampprivate java.lang.Stringtypeprivate java.lang.StringuserId
-
Constructor Summary
Constructors Constructor Description BasicProperties()BasicProperties(java.io.DataInputStream in)BasicProperties(java.lang.String contentType, java.lang.String contentEncoding, java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Integer deliveryMode, java.lang.Integer priority, java.lang.String correlationId, java.lang.String replyTo, java.lang.String expiration, java.lang.String messageId, java.util.Date timestamp, java.lang.String type, java.lang.String userId, java.lang.String appId, java.lang.String clusterId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendPropertyDebugStringTo(java.lang.StringBuilder acc)Public API - Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.AMQP.BasicProperties.Builderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetAppId()Retrieve the value in the appId field.intgetClassId()Retrieve the class ID (see the spec for a list of allowable IDs).java.lang.StringgetClassName()Retrieve the class name, eg "basic" (see the spec for a list of these).java.lang.StringgetClusterId()java.lang.StringgetContentEncoding()Retrieve the value in the contentEncoding field.java.lang.StringgetContentType()Retrieve the value in the contentType field.java.lang.StringgetCorrelationId()Retrieve the value in the correlationId field.java.lang.IntegergetDeliveryMode()Retrieve the value in the deliveryMode field.java.lang.StringgetExpiration()Retrieve the value in the expiration field.java.util.Map<java.lang.String,java.lang.Object>getHeaders()Retrieve the table in the headers field as a map of fields names and values.java.lang.StringgetMessageId()Retrieve the value in the messageId field.java.lang.IntegergetPriority()Retrieve the value in the priority field.java.lang.StringgetReplyTo()Retrieve the value in the replyTo field.java.util.DategetTimestamp()Retrieve the value in the timestamp field.java.lang.StringgetType()Retrieve the value in the type field.java.lang.StringgetUserId()Retrieve the value in the userId field.inthashCode()voidwritePropertiesTo(ContentHeaderPropertyWriter writer)Private API - Autogenerated writer for this header-
Methods inherited from class com.rabbitmq.client.impl.AMQBasicProperties
clone
-
Methods inherited from class com.rabbitmq.client.impl.AMQContentHeader
getBodySize, toFrame, toString
-
-
-
-
Field Detail
-
contentType
private java.lang.String contentType
-
contentEncoding
private java.lang.String contentEncoding
-
headers
private java.util.Map<java.lang.String,java.lang.Object> headers
-
deliveryMode
private java.lang.Integer deliveryMode
-
priority
private java.lang.Integer priority
-
correlationId
private java.lang.String correlationId
-
replyTo
private java.lang.String replyTo
-
expiration
private java.lang.String expiration
-
messageId
private java.lang.String messageId
-
timestamp
private java.util.Date timestamp
-
type
private java.lang.String type
-
userId
private java.lang.String userId
-
appId
private java.lang.String appId
-
clusterId
private java.lang.String clusterId
-
-
Constructor Detail
-
BasicProperties
public BasicProperties(java.lang.String contentType, java.lang.String contentEncoding, java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Integer deliveryMode, java.lang.Integer priority, java.lang.String correlationId, java.lang.String replyTo, java.lang.String expiration, java.lang.String messageId, java.util.Date timestamp, java.lang.String type, java.lang.String userId, java.lang.String appId, java.lang.String clusterId)
-
BasicProperties
public BasicProperties(java.io.DataInputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
BasicProperties
public BasicProperties()
-
-
Method Detail
-
getClassId
public int getClassId()
Description copied from interface:ContentHeaderRetrieve the class ID (see the spec for a list of allowable IDs).- Returns:
- class ID of this ContentHeader. Properly an unsigned short, i.e. only the lowest 16 bits are significant
-
getClassName
public java.lang.String getClassName()
Description copied from interface:ContentHeaderRetrieve the class name, eg "basic" (see the spec for a list of these).- Returns:
- class name of this ContentHeader
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
builder
public AMQP.BasicProperties.Builder builder()
-
getContentType
public java.lang.String getContentType()
Description copied from interface:BasicPropertiesRetrieve the value in the contentType field.- Returns:
- contentType field, or null if the field has not been set.
-
getContentEncoding
public java.lang.String getContentEncoding()
Description copied from interface:BasicPropertiesRetrieve the value in the contentEncoding field.- Returns:
- contentEncoding field, or null if the field has not been set.
-
getHeaders
public java.util.Map<java.lang.String,java.lang.Object> getHeaders()
Description copied from interface:BasicPropertiesRetrieve the table in the headers field as a map of fields names and values.- Returns:
- headers table, or null if the headers field has not been set.
-
getDeliveryMode
public java.lang.Integer getDeliveryMode()
Description copied from interface:BasicPropertiesRetrieve the value in the deliveryMode field.- Returns:
- deliveryMode field, or null if the field has not been set.
-
getPriority
public java.lang.Integer getPriority()
Description copied from interface:BasicPropertiesRetrieve the value in the priority field.- Returns:
- priority field, or null if the field has not been set.
-
getCorrelationId
public java.lang.String getCorrelationId()
Description copied from interface:BasicPropertiesRetrieve the value in the correlationId field.- Returns:
- correlationId field, or null if the field has not been set.
-
getReplyTo
public java.lang.String getReplyTo()
Description copied from interface:BasicPropertiesRetrieve the value in the replyTo field.- Returns:
- replyTo field, or null if the field has not been set.
-
getExpiration
public java.lang.String getExpiration()
Description copied from interface:BasicPropertiesRetrieve the value in the expiration field.- Returns:
- expiration field, or null if the field has not been set.
-
getMessageId
public java.lang.String getMessageId()
Description copied from interface:BasicPropertiesRetrieve the value in the messageId field.- Returns:
- messageId field, or null if the field has not been set.
-
getTimestamp
public java.util.Date getTimestamp()
Description copied from interface:BasicPropertiesRetrieve the value in the timestamp field.- Returns:
- timestamp field, or null if the field has not been set.
-
getType
public java.lang.String getType()
Description copied from interface:BasicPropertiesRetrieve the value in the type field.- Returns:
- type field, or null if the field has not been set.
-
getUserId
public java.lang.String getUserId()
Description copied from interface:BasicPropertiesRetrieve the value in the userId field.- Returns:
- userId field, or null if the field has not been set.
-
getAppId
public java.lang.String getAppId()
Description copied from interface:BasicPropertiesRetrieve the value in the appId field.- Returns:
- appId field, or null if the field has not been set.
-
getClusterId
public java.lang.String getClusterId()
-
writePropertiesTo
public void writePropertiesTo(ContentHeaderPropertyWriter writer) throws java.io.IOException
Description copied from class:AMQContentHeaderPrivate API - Autogenerated writer for this header- Specified by:
writePropertiesToin classAMQContentHeader- Throws:
java.io.IOException
-
appendPropertyDebugStringTo
public void appendPropertyDebugStringTo(java.lang.StringBuilder acc)
Description copied from class:AMQContentHeaderPublic API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.- Specified by:
appendPropertyDebugStringToin interfaceContentHeader- Overrides:
appendPropertyDebugStringToin classAMQContentHeader- Parameters:
acc- a place to append the properties as a string
-
-