public MessageQueueONS(MessageQueueONS other) : this(ONSClient4CPPPINVOKE.new_MessageQueueONS__SWIG_2(getCPtr(other)), true) { if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) { throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void persistConsumerOffset4PullConsumer(MessageQueueONS mq) { ONSClient4CPPPINVOKE.PullConsumer_persistConsumerOffset4PullConsumer(swigCPtr, MessageQueueONS.getCPtr(mq)); if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) { throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void updateConsumeOffset(MessageQueueONS mq, long offset) { ONSClient4CPPPINVOKE.PullConsumer_updateConsumeOffset(swigCPtr, MessageQueueONS.getCPtr(mq), offset); if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) { throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve(); } }
public int compareTo(MessageQueueONS mq) { var ret = ONSClient4CPPPINVOKE.MessageQueueONS_compareTo(swigCPtr, getCPtr(mq)); if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending) { throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
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); }
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); }
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); }
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); }
internal static HandleRef getCPtr(MessageQueueONS obj) { return(obj == null ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }