Exemplo n.º 1
0
 public MessageQueueONS(MessageQueueONS other) : this(ONSClient4CPPPINVOKE.new_MessageQueueONS__SWIG_2(getCPtr(other)), true)
 {
     if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
     {
         throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public virtual void persistConsumerOffset4PullConsumer(MessageQueueONS mq)
 {
     ONSClient4CPPPINVOKE.PullConsumer_persistConsumerOffset4PullConsumer(swigCPtr, MessageQueueONS.getCPtr(mq));
     if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
     {
         throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public virtual void updateConsumeOffset(MessageQueueONS mq, long offset)
 {
     ONSClient4CPPPINVOKE.PullConsumer_updateConsumeOffset(swigCPtr, MessageQueueONS.getCPtr(mq), offset);
     if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
     {
         throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        public int compareTo(MessageQueueONS mq)
        {
            var ret = ONSClient4CPPPINVOKE.MessageQueueONS_compareTo(swigCPtr, getCPtr(mq));

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public virtual SendResultONS send(Message msg, MessageQueueONS mq)
        {
            var ret = new SendResultONS(ONSClient4CPPPINVOKE.Producer_send__SWIG_1(swigCPtr, Message.getCPtr(msg), MessageQueueONS.getCPtr(mq)), true);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
        public virtual long searchOffset(MessageQueueONS mq, long timestamp)
        {
            var ret = ONSClient4CPPPINVOKE.PullConsumer_searchOffset(swigCPtr, MessageQueueONS.getCPtr(mq), timestamp);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 7
0
        public virtual PullResultONS pull(MessageQueueONS mq, string subExpression, long offset, int maxNums)
        {
            var ret = new PullResultONS(ONSClient4CPPPINVOKE.PullConsumer_pull(swigCPtr, MessageQueueONS.getCPtr(mq), subExpression, offset, maxNums), true);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 8
0
        public virtual long fetchConsumeOffset(MessageQueueONS mq, bool fromStore)
        {
            var ret = ONSClient4CPPPINVOKE.PullConsumer_fetchConsumeOffset(swigCPtr, MessageQueueONS.getCPtr(mq), fromStore);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 9
0
 internal static HandleRef getCPtr(MessageQueueONS obj)
 {
     return(obj == null ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }