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,Cloneable
- Enclosing interface:
AMQP
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBasicProperties(String contentType, String contentEncoding, Map<String, Object> headers, Integer deliveryMode, Integer priority, String correlationId, String replyTo, String expiration, String messageId, Date timestamp, String type, String userId, String appId, String clusterId) -
Method Summary
Modifier and TypeMethodDescriptionvoidPublic API - Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.builder()booleangetAppId()Retrieve the value in the appId field.intRetrieve the class ID (see the spec for a list of allowable IDs).Retrieve the class name, eg "basic" (see the spec for a list of these).Retrieve the value in the contentEncoding field.Retrieve the value in the contentType field.Retrieve the value in the correlationId field.Retrieve the value in the deliveryMode field.Retrieve the value in the expiration field.Retrieve the table in the headers field as a map of fields names and values.Retrieve the value in the messageId field.Retrieve the value in the priority field.Retrieve the value in the replyTo field.Retrieve the value in the timestamp field.getType()Retrieve the value in the type field.Retrieve the value in the userId field.inthashCode()voidPrivate API - Autogenerated writer for this headerMethods inherited from class com.rabbitmq.client.impl.AMQBasicProperties
cloneMethods inherited from class com.rabbitmq.client.impl.AMQContentHeader
getBodySize, toFrame, toString
-
Constructor Details
-
BasicProperties
-
BasicProperties
- Throws:
IOException
-
BasicProperties
public BasicProperties()
-
-
Method Details
-
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
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
-
hashCode
public int hashCode() -
builder
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the contentEncoding field.- Returns:
- contentEncoding field, or null if the field has not been set.
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the deliveryMode field.- Returns:
- deliveryMode field, or null if the field has not been set.
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the correlationId field.- Returns:
- correlationId field, or null if the field has not been set.
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the expiration field.- Returns:
- expiration field, or null if the field has not been set.
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the timestamp field.- Returns:
- timestamp field, or null if the field has not been set.
-
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
Description copied from interface:BasicPropertiesRetrieve the value in the userId field.- Returns:
- userId field, or null if the field has not been set.
-
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
-
writePropertiesTo
Description copied from class:AMQContentHeaderPrivate API - Autogenerated writer for this header- Specified by:
writePropertiesToin classAMQContentHeader- Throws:
IOException
-
appendPropertyDebugStringTo
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
-