HavretGC commented on a change in pull request #4: AMQNET-589: Failover
implementation
URL: https://github.com/apache/activemq-nms-amqp/pull/4#discussion_r303339187
##########
File path: src/NMS.AMQP/Message/Facade/INmsMessageFacade.cs
##########
@@ -15,47 +15,28 @@
* limitations under the License.
*/
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Apache.NMS;
-
-namespace Apache.NMS.AMQP.Message.Cloak
+namespace Apache.NMS.AMQP.Message.Facade
{
- /// <summary>
- /// Provider specific Cloak Interface from provider implementation.
- /// </summary>
- interface IMessageCloak : IMessage
+ public interface INmsMessageFacade
{
- byte[] Content
- {
- get;
- set;
- }
-
- bool IsBodyReadOnly { get; set; }
-
- bool IsPropertiesReadOnly { get; set; }
-
- bool IsReceived { get; }
-
- IMessageCloak Copy();
-
- object GetMessageAnnotation(string symbolKey);
-
- void SetMessageAnnotation(string symbolKey, object value);
-
- object GetDeliveryAnnotation(string symbolKey);
-
- void SetDeliveryAnnotation(string symbolKey, object value);
-
+ NmsMessage AsMessage();
+ void ClearBody();
int DeliveryCount { get; set; }
-
int RedeliveryCount { get; set; }
-
- MessageAcknowledgementHandler AckHandler { get; set; }
-
+ void OnSend(TimeSpan producerTtl);
+ string NMSMessageId { get; set; }
+ IPrimitiveMap Properties { get; }
+ string NMSCorrelationID { get; set; }
+ IDestination NMSDestination { get; set; }
+ TimeSpan NMSTimeToLive { get; set; }
+ MsgDeliveryMode NMSDeliveryMode { get; set; }
+ MsgPriority NMSPriority { get; set; }
+ bool NMSRedelivered { get; set; }
+ IDestination NMSReplyTo { get; set; }
+ DateTime NMSTimestamp { get; set; }
+ string NMSType { get; set; }
+ DateTime Expiration { get; set; }
+ double JmsMsgType { get; }
Review comment:
Confirmed. Using bytes instead of sbytes breaks interoperability.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services