public QAManagerBase
此类用作 QATransactionalManager 和 QAManager 的基类,它们分别管理事务性和非事务性消息传递。
使用 start 方法可允许 QAManagerBase 实例监听消息。应用程序中的每个线程必须只有一个 QAManagerBase 实例。
使用此类的实例可以创建和管理 QAnywhere 消息。使用 createBinaryMessage 方法和 createTextMessage 方法来创建合适的 QAMessage 实例。QAMessage 实例提供各种设置消息内容和属性的方法。要发送 QAnywhere 消息,请使用 putMessage 将带地址的消息放置于本地消息存储库队列中。此消息由 QAnywhere 代理根据其传输策略传输,或在您调用 triggerSendReceive 时传输。
有关 qaagent 传输策略的详细信息,请参见确定在客户端进行消息传输的时间。
使用 close 方法关闭 QAManagerBase 实例时,消息将从内存中释放。
发生 QAException 时,可以使用 getLastError、getLastErrorMessage 和 getLastNativeError 来返回错误信息。QAManagerBase 还提供设置和获取消息存储库属性的方法。
有关详细信息,请参见客户端消息存储库属性和MessageStoreProperties 类。
QAManagerBase 的所有成员,包括所有继承的成员。
beginEnumStorePropertyNames 函数
browseClose 函数
browseMessages 函数
browseMessagesByID 函数
browseMessagesByQueue 函数
browseMessagesBySelector 函数
browseNextMessage 函数
cancelMessage 函数
close 函数
createBinaryMessage 函数
createTextMessage 函数
deleteMessage 函数
endEnumStorePropertyNames 函数
getAllQueueDepth 函数
getBooleanStoreProperty 函数
getByteStoreProperty 函数
getDoubleStoreProperty 函数
getFloatStoreProperty 函数
getIntStoreProperty 函数
getLastError 函数
getLastErrorMsg 函数
getLastNativeError 函数
getLongStoreProperty 函数
getMessage 函数
getMessageBySelector 函数
getMessageBySelectorNoWait 函数
getMessageBySelectorTimeout 函数
getMessageNoWait 函数
getMessageTimeout 函数
getMode 函数
getQueueDepth 函数
getShortStoreProperty 函数
getStringStoreProperty 函数
nextStorePropertyName 函数
putMessage 函数
putMessageTimeToLive 函数
setBooleanStoreProperty 函数
setByteStoreProperty 函数
setDoubleStoreProperty 函数
setFloatStoreProperty 函数
setIntStoreProperty 函数
setLongStoreProperty 函数
setMessageListener 函数
setMessageListenerBySelector 函数
setProperty 函数
setShortStoreProperty 函数
setStringStoreProperty 函数
start 函数
stop 函数
triggerSendReceive 函数
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |