⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aqqueue.h

📁 在动态库中实现异步导出大数据量的oracle数据
💻 H
字号:
#ifndef __AQQUEUE_H_
#define __AQQUEUE_H_

#include <string>

#include "ocicpp.h"
#include "OraError.h"
#include "AQMessage.h"

using std::string;

namespace OCICPP
{

class AQQueue
{
private:
	int		Initialized;
	string		queue_name;
	OCIEnv 		*envhp;
	OCISvcCtx	*svchp;
	OCIError	*errhp;
	OCIType 	*payload_tdo;
	int		Navigation;
	int		DequeueMode;
	int		Wait;

public:
		AQQueue();
	void	init(std::string& queue_name, OCIEnv *env, OCISvcCtx *svc, OCIError *err);
	string 	Enqueue(OCICPP::AQMessage &msg);
	void 	Dequeue(OCICPP::AQMessage &msg, std::string req_msg_id = "", std::string req_corr_id = "");
	void 	DequeueByCorrelationIdentifier(OCICPP::AQMessage &msg, std::string req_corr_id);
	void 	DequeueByMessageID(OCICPP::AQMessage &msg, std::string req_msg_id);

	void	setNavigation(int Navigation);
	void	setDequeueMode(int DequeueMode);
	void	setWait(int Wait);
};

} // namespace OCICPP


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -