/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*
*/
namespace Apache.Qpid.Messaging
{
public interface IMessage
{
///
/// The MIME Content Type
///
string ContentType { get; set;}
///
/// The MIME Content Encoding
///
string ContentEncoding { get; set; }
///
/// The application correlation identifier
///
string CorrelationId { get; set; }
///
/// The application correlation identifier, as an array of bytes
///
byte[] CorrelationIdAsBytes { get; set; }
///
/// Non-persistent (1) or persistent (2)
///
DeliveryMode DeliveryMode { get; set; }
///
/// Message expiration specification
///
long Expiration { get; set; }
///
/// The application message identifier
///
string MessageId { get; set; }
///
/// The message priority, 0 to 9
///
byte Priority { get; set; }
///
/// True if the message has been redelivered
///
bool Redelivered { get; set; }
///
/// Exchange name of the reply-to address
///
string ReplyToExchangeName { get; set; }
///
/// Routing key of the reply-to address
///
string ReplyToRoutingKey { get; set; }
///
/// The message timestamp
///
long Timestamp { get; set; }
///
/// The message type name
///
string Type { get; set; }
///
/// Message headers
///
IHeaders Headers { get; }
///
/// The creating user id
///
string UserId { get; set; }
///
/// The creating application id
///
string AppId { get; set; }
///
/// Intra-cluster routing identifier
///
string ClusterId { get; set; }
void Acknowledge();
void ClearBody();
}
}