zoukankan      html  css  js  c++  java
  • ons.Message.cs

    ylbtech-ons.Message.cs
    1.返回顶部
    1、
    //------------------------------------------------------------------------------
    // <auto-generated />
    //
    // This file was automatically generated by SWIG (http://www.swig.org).
    // Version 3.0.12
    //
    // Do not make changes to this file unless you know what you are doing--modify
    // the SWIG interface file instead.
    //------------------------------------------------------------------------------
    
    namespace ons {
    
    public class Message : global::System.IDisposable {
      private global::System.Runtime.InteropServices.HandleRef swigCPtr;
      protected bool swigCMemOwn;
    
      internal Message(global::System.IntPtr cPtr, bool cMemoryOwn) {
        swigCMemOwn = cMemoryOwn;
        swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
      }
    
      internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Message obj) {
        return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
      }
    
      ~Message() {
        Dispose();
      }
    
      public virtual void Dispose() {
        lock(this) {
          if (swigCPtr.Handle != global::System.IntPtr.Zero) {
            if (swigCMemOwn) {
              swigCMemOwn = false;
              ONSClient4CPPPINVOKE.delete_Message(swigCPtr);
            }
            swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
          }
          global::System.GC.SuppressFinalize(this);
        }
      }
    
      public Message() : this(ONSClient4CPPPINVOKE.new_Message__SWIG_0(), true) {
      }
    
      public Message(string topic, string tags, string byte_body) : this(ONSClient4CPPPINVOKE.new_Message__SWIG_1(topic, tags, byte_body), true) {
        if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
      }
    
      public Message(string topic, uint topic_size, string tags, uint tags_size, string body, uint body_size) : this(ONSClient4CPPPINVOKE.new_Message__SWIG_3(topic, topic_size, tags, tags_size, body, body_size), true) {
      }
    
      public Message(string topic, string tags, string keys, string body) : this(ONSClient4CPPPINVOKE.new_Message__SWIG_4(topic, tags, keys, body), true) {
      }
    
      public Message(Message other) : this(ONSClient4CPPPINVOKE.new_Message__SWIG_5(Message.getCPtr(other)), true) {
        if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
      }
    
      public void putUserProperties(string key, string value) {
        ONSClient4CPPPINVOKE.Message_putUserProperties(swigCPtr, key, value);
      }
    
      public string getUserProperties(string key) {
        string ret = ONSClient4CPPPINVOKE.Message_getUserProperties__SWIG_0(swigCPtr, key);
        return ret;
      }
    
      public void setUserProperties(SWIGTYPE_p_std__mapT_std__string_std__string_t userProperty) {
        ONSClient4CPPPINVOKE.Message_setUserProperties(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(userProperty));
        if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
      }
    
      public SWIGTYPE_p_std__mapT_std__string_std__string_t getUserProperties() {
        SWIGTYPE_p_std__mapT_std__string_std__string_t ret = new SWIGTYPE_p_std__mapT_std__string_std__string_t(ONSClient4CPPPINVOKE.Message_getUserProperties__SWIG_1(swigCPtr), true);
        return ret;
      }
    
      public void putSystemProperties(string key, string value) {
        ONSClient4CPPPINVOKE.Message_putSystemProperties(swigCPtr, key, value);
      }
    
      public string getSystemProperties(string key) {
        string ret = ONSClient4CPPPINVOKE.Message_getSystemProperties__SWIG_0(swigCPtr, key);
        return ret;
      }
    
      public void setSystemProperties(SWIGTYPE_p_std__mapT_std__string_std__string_t systemProperty) {
        ONSClient4CPPPINVOKE.Message_setSystemProperties(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(systemProperty));
        if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
      }
    
      public SWIGTYPE_p_std__mapT_std__string_std__string_t getSystemProperties() {
        SWIGTYPE_p_std__mapT_std__string_std__string_t ret = new SWIGTYPE_p_std__mapT_std__string_std__string_t(ONSClient4CPPPINVOKE.Message_getSystemProperties__SWIG_1(swigCPtr), true);
        return ret;
      }
    
      public string getTopic() {
        string ret = ONSClient4CPPPINVOKE.Message_getTopic(swigCPtr);
        return ret;
      }
    
      public void setTopic(string topic) {
        ONSClient4CPPPINVOKE.Message_setTopic(swigCPtr, topic);
      }
    
      public string getTag() {
        string ret = ONSClient4CPPPINVOKE.Message_getTag(swigCPtr);
        return ret;
      }
    
      public void setTag(string tags) {
        ONSClient4CPPPINVOKE.Message_setTag(swigCPtr, tags);
      }
    
      public string getKey() {
        string ret = ONSClient4CPPPINVOKE.Message_getKey(swigCPtr);
        return ret;
      }
    
      public void setKey(string keys) {
        ONSClient4CPPPINVOKE.Message_setKey(swigCPtr, keys);
      }
    
      public string getMsgID() {
        string ret = ONSClient4CPPPINVOKE.Message_getMsgID(swigCPtr);
        return ret;
      }
    
      public void setMsgID(string msgId) {
        ONSClient4CPPPINVOKE.Message_setMsgID(swigCPtr, msgId);
      }
    
      public long getStartDeliverTime() {
        long ret = ONSClient4CPPPINVOKE.Message_getStartDeliverTime(swigCPtr);
        return ret;
      }
    
      public void setStartDeliverTime(long level) {
        ONSClient4CPPPINVOKE.Message_setStartDeliverTime(swigCPtr, level);
      }
    
      public string getBody() {
        string ret = ONSClient4CPPPINVOKE.Message_getBody(swigCPtr);
        return ret;
      }
    
      public string getMsgBody() {
        string ret = ONSClient4CPPPINVOKE.Message_getMsgBody(swigCPtr);
        return ret;
      }
    
      public void setMsgBody(string msgbody) {
        ONSClient4CPPPINVOKE.Message_setMsgBody(swigCPtr, msgbody);
        if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
      }
    
      public void setBody(byte[] byte_msgbody, int len) {
        ONSClient4CPPPINVOKE.Message_setBody(swigCPtr, byte_msgbody, len);
      }
    
      public int getReconsumeTimes() {
        int ret = ONSClient4CPPPINVOKE.Message_getReconsumeTimes(swigCPtr);
        return ret;
      }
    
      public void setReconsumeTimes(int reconsumeTimes) {
        ONSClient4CPPPINVOKE.Message_setReconsumeTimes(swigCPtr, reconsumeTimes);
      }
    
      public long getStoreTimestamp() {
        long ret = ONSClient4CPPPINVOKE.Message_getStoreTimestamp(swigCPtr);
        return ret;
      }
    
      public void setStoreTimestamp(long storeTimestamp) {
        ONSClient4CPPPINVOKE.Message_setStoreTimestamp(swigCPtr, storeTimestamp);
      }
    
      public string toString() {
        string ret = ONSClient4CPPPINVOKE.Message_toString(swigCPtr);
        return ret;
      }
    
      public string toSystemString() {
        string ret = ONSClient4CPPPINVOKE.Message_toSystemString(swigCPtr);
        return ret;
      }
    
      public string toUserString() {
        string ret = ONSClient4CPPPINVOKE.Message_toUserString(swigCPtr);
        return ret;
      }
    
      public long getQueueOffset() {
        long ret = ONSClient4CPPPINVOKE.Message_getQueueOffset(swigCPtr);
        return ret;
      }
    
      public void setQueueOffset(long queueOffset) {
        ONSClient4CPPPINVOKE.Message_setQueueOffset(swigCPtr, queueOffset);
      }
    
    }
    
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    前端之CSS:属性操作2
    前端之CSS:属性操作1
    前端之CSS:CSS选择器
    前端之HTML:表单操作
    前端之HTML:HTML
    SQLAlchemy的使用(SQLAlchemy 是一种对象关系映射模型(Object Relational Mapper), 简称ORM。)
    IO多路复用
    协程
    线程的那些事儿
    并发编程的那些事儿(四)
  • 原文地址:https://www.cnblogs.com/storebook/p/12603547.html
Copyright © 2011-2022 走看看