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
public static class AMQP.BasicProperties extends AMQBasicProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AMQP.BasicProperties.Builder
-
Constructor Summary
Constructors Constructor Description BasicProperties()
BasicProperties(DataInputStream in)
BasicProperties(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendPropertyDebugStringTo(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.Builder
builder()
boolean
equals(Object o)
String
getAppId()
Retrieve the value in the appId field.int
getClassId()
Retrieve the class ID (see the spec for a list of allowable IDs).String
getClassName()
Retrieve the class name, eg "basic" (see the spec for a list of these).String
getClusterId()
String
getContentEncoding()
Retrieve the value in the contentEncoding field.String
getContentType()
Retrieve the value in the contentType field.String
getCorrelationId()
Retrieve the value in the correlationId field.Integer
getDeliveryMode()
Retrieve the value in the deliveryMode field.String
getExpiration()
Retrieve the value in the expiration field.Map<String,Object>
getHeaders()
Retrieve the table in the headers field as a map of fields names and values.String
getMessageId()
Retrieve the value in the messageId field.Integer
getPriority()
Retrieve the value in the priority field.String
getReplyTo()
Retrieve the value in the replyTo field.Date
getTimestamp()
Retrieve the value in the timestamp field.String
getType()
Retrieve the value in the type field.String
getUserId()
Retrieve the value in the userId field.int
hashCode()
void
writePropertiesTo(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
-
-
-
-
Constructor Detail
-
BasicProperties
public BasicProperties(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)
-
BasicProperties
public BasicProperties(DataInputStream in) throws IOException
- Throws:
IOException
-
BasicProperties
public BasicProperties()
-
-
Method Detail
-
getClassId
public int getClassId()
Description copied from interface:ContentHeader
Retrieve 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 String getClassName()
Description copied from interface:ContentHeader
Retrieve the class name, eg "basic" (see the spec for a list of these).- Returns:
- class name of this ContentHeader
-
builder
public AMQP.BasicProperties.Builder builder()
-
getContentType
public String getContentType()
Description copied from interface:BasicProperties
Retrieve the value in the contentType field.- Returns:
- contentType field, or null if the field has not been set.
-
getContentEncoding
public String getContentEncoding()
Description copied from interface:BasicProperties
Retrieve the value in the contentEncoding field.- Returns:
- contentEncoding field, or null if the field has not been set.
-
getHeaders
public Map<String,Object> getHeaders()
Description copied from interface:BasicProperties
Retrieve 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 Integer getDeliveryMode()
Description copied from interface:BasicProperties
Retrieve the value in the deliveryMode field.- Returns:
- deliveryMode field, or null if the field has not been set.
-
getPriority
public Integer getPriority()
Description copied from interface:BasicProperties
Retrieve the value in the priority field.- Returns:
- priority field, or null if the field has not been set.
-
getCorrelationId
public String getCorrelationId()
Description copied from interface:BasicProperties
Retrieve the value in the correlationId field.- Returns:
- correlationId field, or null if the field has not been set.
-
getReplyTo
public String getReplyTo()
Description copied from interface:BasicProperties
Retrieve the value in the replyTo field.- Returns:
- replyTo field, or null if the field has not been set.
-
getExpiration
public String getExpiration()
Description copied from interface:BasicProperties
Retrieve the value in the expiration field.- Returns:
- expiration field, or null if the field has not been set.
-
getMessageId
public String getMessageId()
Description copied from interface:BasicProperties
Retrieve the value in the messageId field.- Returns:
- messageId field, or null if the field has not been set.
-
getTimestamp
public Date getTimestamp()
Description copied from interface:BasicProperties
Retrieve the value in the timestamp field.- Returns:
- timestamp field, or null if the field has not been set.
-
getType
public String getType()
Description copied from interface:BasicProperties
Retrieve the value in the type field.- Returns:
- type field, or null if the field has not been set.
-
getUserId
public String getUserId()
Description copied from interface:BasicProperties
Retrieve the value in the userId field.- Returns:
- userId field, or null if the field has not been set.
-
getAppId
public String getAppId()
Description copied from interface:BasicProperties
Retrieve the value in the appId field.- Returns:
- appId field, or null if the field has not been set.
-
getClusterId
public String getClusterId()
-
writePropertiesTo
public void writePropertiesTo(ContentHeaderPropertyWriter writer) throws IOException
Description copied from class:AMQContentHeader
Private API - Autogenerated writer for this header- Specified by:
writePropertiesTo
in classAMQContentHeader
- Throws:
IOException
-
appendPropertyDebugStringTo
public void appendPropertyDebugStringTo(StringBuilder acc)
Description copied from class:AMQContentHeader
Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.- Specified by:
appendPropertyDebugStringTo
in interfaceContentHeader
- Overrides:
appendPropertyDebugStringTo
in classAMQContentHeader
- Parameters:
acc
- a place to append the properties as a string
-
-