public class BrokeredMessage extends Object
Constructor and Description |
---|
BrokeredMessage()
Creates an instance of the
Message class. |
BrokeredMessage(com.microsoft.windowsazure.services.serviceBus.implementation.BrokerProperties properties)
Internal
|
BrokeredMessage(byte[] body)
Creates an instance of the
Message class using the specified byte array. |
BrokeredMessage(InputStream body)
Creates an instance of the
Message class using the specified InputStream . |
BrokeredMessage(String body)
Creates an instance of the
Message class using the specified
string. |
Modifier and Type | Method and Description |
---|---|
InputStream |
getBody()
Returns the body of the message.
|
com.microsoft.windowsazure.services.serviceBus.implementation.BrokerProperties |
getBrokerProperties()
Returns the properties of the message.
|
String |
getContentType()
Returns the content type of the message.
|
String |
getCorrelationId()
Returns the correlation ID.
|
Date |
getDate()
Returns the date/time of the message.
|
Integer |
getDeliveryCount()
Returns the delivery count of the message.
|
String |
getLabel()
Returns the label of the message.
|
Date |
getLockedUntilUtc()
Returns the locked-until date/time.
|
String |
getLockLocation()
Returns the lock location.
|
String |
getLockToken()
Returns the lock token for the message.
|
String |
getMessageId()
Returns the message ID.
|
String |
getMessageLocation()
Returns the message location.
|
Map<String,Object> |
getProperties()
Returns the user defined properties of the message.
|
Object |
getProperty(String name)
Returns a user defined property of the message.
|
String |
getReplyTo()
Returns the Reply-To recipient of the message.
|
String |
getReplyToSessionId()
Returns the session ID of the Reply To recipient.
|
Date |
getScheduledEnqueueTimeUtc()
Returns the scheduled enqueue date/time.
|
Long |
getSequenceNumber()
Returns the message sequence number.
|
String |
getSessionId()
Returns the session ID for the message.
|
Double |
getTimeToLive()
Returns the time-to-live for the message.
|
String |
getTo()
Returns the To recipient of the message.
|
BrokeredMessage |
setBody(InputStream body)
Specifies the body of the message.
|
BrokeredMessage |
setContentType(String contentType)
Sets the content type of the message.
|
BrokeredMessage |
setCorrelationId(String correlationId)
Sets the correlation ID.
|
BrokeredMessage |
setDate(Date date)
Sets the date/time of the message.
|
BrokeredMessage |
setLabel(String label)
Sets the label of the message.
|
BrokeredMessage |
setMessageId(String messageId)
Sets the message ID.
|
BrokeredMessage |
setProperty(String name,
Object value)
Sets a user defined property of the message.
|
BrokeredMessage |
setReplyTo(String replyTo)
Sets the Reply-To recipient for the message.
|
BrokeredMessage |
setReplyToSessionId(String replyToSessionId)
Sets the session ID of the Reply To recipient.
|
BrokeredMessage |
setScheduledEnqueueTimeUtc(Date scheduledEnqueueTimeUtc)
Sets the scheduled enqueue time.
|
BrokeredMessage |
setSessionId(String sessionId)
Sets the session ID for the message.
|
BrokeredMessage |
setTimeToLive(Double timeToLive)
Sets the time-to-live for the message.
|
BrokeredMessage |
setTo(String to)
Sets the To recipient of the message.
|
public BrokeredMessage()
Message
class.public BrokeredMessage(InputStream body)
Message
class using the specified InputStream
.body
- An InputStream
object that represents the body of the message.public BrokeredMessage(byte[] body)
Message
class using the specified byte array.body
- A byte array that represents the body of the message.public BrokeredMessage(String body)
Message
class using the specified
string.body
- A String
object that represents the body of the message.public BrokeredMessage(com.microsoft.windowsazure.services.serviceBus.implementation.BrokerProperties properties)
properties
- public com.microsoft.windowsazure.services.serviceBus.implementation.BrokerProperties getBrokerProperties()
BrokerProperties
object that represents the properties of the message.public InputStream getBody()
InputStream
object that represents the body of the message.public BrokeredMessage setBody(InputStream body)
body
- An InputStream
object that represents the body of the message.Message
object that represents the updated message.public String getContentType()
String
object that represents the content type.public BrokeredMessage setContentType(String contentType)
contentType
- A String
object that represents the content type.Message
object that represents the updated message.public Date getDate()
Date
object that represents the date/time of the object.public BrokeredMessage setDate(Date date)
date
- A Date
object that represents the date/time of the object.Message
object that represents the updated message.public Object getProperty(String name)
name
- A String
object that represents the name of the property.Object
object that represents the value of the property.public BrokeredMessage setProperty(String name, Object value)
name
- A String
object that represents the name of the property.value
- An Object
object that represents the value of the property.Message
object that represents the updated message.public Map<String,Object> getProperties()
Map
object that represents the user defined properties.public Integer getDeliveryCount()
public String getMessageId()
String
object that represents the message ID.public BrokeredMessage setMessageId(String messageId)
messageId
- A String
object that represents the message ID.Message
object that represents the updated message.public Long getSequenceNumber()
public Double getTimeToLive()
public BrokeredMessage setTimeToLive(Double timeToLive)
timeToLive
- The time, in seconds, for the message to live.Message
object that represents the updated message.public String getLockToken()
String
object that represents the lock token.public Date getLockedUntilUtc()
Date
object that represents the locked-until date/time, in UTC format.public String getCorrelationId()
String
object that represents the correlation ID.public BrokeredMessage setCorrelationId(String correlationId)
correlationId
- A String
object that represents the correlation ID.Message
object that represents the updated message.public String getSessionId()
String
object that represents the session ID.public BrokeredMessage setSessionId(String sessionId)
sessionId
- A String
object that represents the session ID.Message
object that represents the updated message.public String getLabel()
String
object that represents the label.public BrokeredMessage setLabel(String label)
label
- A String
object that represents the label.Message
object that represents the updated message.public String getReplyTo()
String
object that represents the Reply-To recipient.public BrokeredMessage setReplyTo(String replyTo)
replyTo
- A String
object that represents the Reply-To recipient.Message
object that represents the updated message.public String getTo()
String
object that represents the To recipient.public BrokeredMessage setTo(String to)
to
- A String
object that represents the To recipient.Message
object that represents the updated message.public Date getScheduledEnqueueTimeUtc()
Date
object that represents the date/time of the message in UTC format.public BrokeredMessage setScheduledEnqueueTimeUtc(Date scheduledEnqueueTimeUtc)
scheduledEnqueueTimeUtc
- A Date
object that represents the date/time of the message in UTC format.Message
object that represents the updated message.public String getReplyToSessionId()
String
object that represents the session ID of the Reply To recipient.public BrokeredMessage setReplyToSessionId(String replyToSessionId)
replyToSessionId
- A String
object that represents the session ID of the Reply To recipient.Message
object that represents the updated message.public String getMessageLocation()
String
object that represents the message location.public String getLockLocation()
String
object that represents the lock location./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/