Exemple #1
0
 public virtual void removeConsumeOffset(MessageQueueONS mq)
 {
     ONSClient4CPPPINVOKE.PullConsumer_removeConsumeOffset(swigCPtr, MessageQueueONS.getCPtr(mq));
     if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
     {
         throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
        public int compareTo(MessageQueueONS mq)
        {
            int ret = ONSClient4CPPPINVOKE.MessageQueueONS_compareTo(swigCPtr, MessageQueueONS.getCPtr(mq));

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #3
0
        public virtual long maxOffset(MessageQueueONS mq)
        {
            long ret = ONSClient4CPPPINVOKE.PullConsumer_maxOffset(swigCPtr, MessageQueueONS.getCPtr(mq));

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #4
0
 public MessageQueueONS(MessageQueueONS other) : this(ONSClient4CPPPINVOKE.new_MessageQueueONS__SWIG_2(MessageQueueONS.getCPtr(other)), true)
 {
     if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
     {
         throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
        public virtual PullResultONS pull(MessageQueueONS mq, string subExpression, long offset, int maxNums)
        {
            PullResultONS ret = new PullResultONS(ONSClient4CPPPINVOKE.PullConsumer_pull(swigCPtr, MessageQueueONS.getCPtr(mq), subExpression, offset, maxNums), true);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #6
0
        public virtual long fetchConsumeOffset(MessageQueueONS mq, bool fromStore)
        {
            long ret = ONSClient4CPPPINVOKE.PullConsumer_fetchConsumeOffset(swigCPtr, MessageQueueONS.getCPtr(mq), fromStore);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #7
0
        public virtual SendResultONS send(Message msg, MessageQueueONS mq)
        {
            SendResultONS 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);
        }