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 class
AMQP.BasicProperties.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
appId
private java.lang.String
clusterId
private java.lang.String
contentEncoding
private java.lang.String
contentType
private java.lang.String
correlationId
private java.lang.Integer
deliveryMode
private java.lang.String
expiration
private java.util.Map<java.lang.String,java.lang.Object>
headers
private java.lang.String
messageId
private java.lang.Integer
priority
private java.lang.String
replyTo
private java.util.Date
timestamp
private java.lang.String
type
private java.lang.String
userId
-
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 void
appendPropertyDebugStringTo(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.Builder
builder()
boolean
equals(java.lang.Object o)
java.lang.String
getAppId()
Retrieve the value in the appId field.int
getClassId()
Retrieve the class ID (see the spec for a list of allowable IDs).java.lang.String
getClassName()
Retrieve the class name, eg "basic" (see the spec for a list of these).java.lang.String
getClusterId()
java.lang.String
getContentEncoding()
Retrieve the value in the contentEncoding field.java.lang.String
getContentType()
Retrieve the value in the contentType field.java.lang.String
getCorrelationId()
Retrieve the value in the correlationId field.java.lang.Integer
getDeliveryMode()
Retrieve the value in the deliveryMode field.java.lang.String
getExpiration()
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.String
getMessageId()
Retrieve the value in the messageId field.java.lang.Integer
getPriority()
Retrieve the value in the priority field.java.lang.String
getReplyTo()
Retrieve the value in the replyTo field.java.util.Date
getTimestamp()
Retrieve the value in the timestamp field.java.lang.String
getType()
Retrieve the value in the type field.java.lang.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
-
-
-
-
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: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 java.lang.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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
builder
public AMQP.BasicProperties.Builder builder()
-
getContentType
public java.lang.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 java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.util.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getClusterId()
-
writePropertiesTo
public void writePropertiesTo(ContentHeaderPropertyWriter writer) throws java.io.IOException
Description copied from class:AMQContentHeader
Private API - Autogenerated writer for this header- Specified by:
writePropertiesTo
in classAMQContentHeader
- Throws:
java.io.IOException
-
appendPropertyDebugStringTo
public void appendPropertyDebugStringTo(java.lang.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
-
-