|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DB request interface that abstracts out a clients interaction with any ADB-like server.
Method Summary | |
java.lang.Object |
getClosure()
Get the closure argument. |
DbRequestStmt[] |
getRequest()
Get the requests statement(s) associated with this request. |
double |
getTimeout()
Get the maximum time interval for which to wait for reply. |
void |
send(java.lang.String sendSubject)
Request. |
void |
send(java.lang.String sendSubject,
java.lang.String replySubject)
Request.Send the request to ADB using the default transport. |
void |
send(com.tibco.tibrv.TibrvTransport rvTrans,
java.lang.String sendSubject)
Request. |
void |
send(com.tibco.tibrv.TibrvTransport rvTrans,
java.lang.String sendSubject,
java.lang.String replySubject)
Request.Send the request to ADB. |
DbReply |
sendRequest(java.lang.String sendSubject)
Request/Reply. |
void |
sendRequest(java.lang.String sendSubject,
DbRequestCallback adbCb,
java.lang.String replySubject)
Async. |
DbReply |
sendRequest(com.tibco.tibrv.TibrvTransport rvTrans,
java.lang.String sendSubject)
Request/Reply. |
void |
sendRequest(com.tibco.tibrv.TibrvTransport rvTrans,
java.lang.String sendSubject,
com.tibco.tibrv.TibrvQueue rvQueue,
DbRequestCallback adbCb,
java.lang.String replySubject)
Async. |
void |
setReplySize(int size)
Set the number of resultset rows in a DbReply object. |
void |
setTimeout(double timeout)
Set the maximum time interval for which to wait for reply. |
java.lang.String |
toPrettyPrintString()
Pretty Print the request message. |
Method Detail |
public java.lang.Object getClosure()
sendRequest(TibrvTransport, String)
public double getTimeout()
sendRequest(TibrvTransport, String)
public void setTimeout(double timeout)
timeout
- Maximum time interval - in seconds - for which to
wait for reply.sendRequest(TibrvTransport, String)
public void setReplySize(int size)
This parameter will only affect the send() and asynch sendRequest() methods. The synchronous sendRequest() call will always return all the resultset rows in one DbReply object. In the case of send() (where there is no callback and therefore no DbReply object), this parameter will affect the TibrvMsg object fired by the ADB-like server.
size
- the return batch sizepublic DbRequestStmt[] getRequest()
public DbReply sendRequest(com.tibco.tibrv.TibrvTransport rvTrans, java.lang.String sendSubject) throws DbBusinessException, DbSystemException
rvTrans
- Transport used to send the request.sendSubject
- Send subject.setTimeout(double)
,
DbReply
,
sendRequest(String)
public DbReply sendRequest(java.lang.String sendSubject) throws DbBusinessException, DbSystemException
sendSubject
- Send subject.#setDefault(TibrvTransport)
,
#setDefault(TibrvTransport, TibrvQueue)
,
setTimeout(double)
,
DbReply
,
sendRequest(TibrvTransport, String)
public void send(com.tibco.tibrv.TibrvTransport rvTrans, java.lang.String sendSubject) throws DbBusinessException, DbSystemException
rvTrans
- Transport used to send the request.sendSubject
- Send subject.send(String)
public void send(java.lang.String sendSubject) throws DbBusinessException, DbSystemException
sendSubject
- Send subject.#setDefault(TibrvTransport)
,
#setDefault(TibrvTransport, TibrvQueue)
,
send(TibrvTransport, String)
public void send(com.tibco.tibrv.TibrvTransport rvTrans, java.lang.String sendSubject, java.lang.String replySubject) throws DbBusinessException, DbSystemException
rvTrans
- Transport.sendSubject
- Send subject.replySubject
- Reply subject.send(String, String)
public void send(java.lang.String sendSubject, java.lang.String replySubject) throws DbBusinessException, DbSystemException
sendSubject
- Send subject.replySubject
- Reply subject.#setDefault(TibrvTransport)
,
#setDefault(TibrvTransport, TibrvQueue)
,
send(TibrvTransport, String, String)
public void sendRequest(com.tibco.tibrv.TibrvTransport rvTrans, java.lang.String sendSubject, com.tibco.tibrv.TibrvQueue rvQueue, DbRequestCallback adbCb, java.lang.String replySubject) throws DbBusinessException, DbSystemException
rvTrans
- Transport used to send the request.sendSubject
- Send subject.rvQueue
- Queue on which the reply is received. Caller must dispatch
from this queue.adbCb
- Callback function.replySubject
- Listen for reply from ADB on this subject.DbReply
,
DbRequestCallback
,
sendRequest(String, DbRequestCallback, String)
public void sendRequest(java.lang.String sendSubject, DbRequestCallback adbCb, java.lang.String replySubject) throws DbBusinessException, DbSystemException
sendSubject
- Send subject.adbCb
- Callback function.replySubject
- Listen for reply from ADB on this subject.DbReply
,
DbRequestCallback
,
sendRequest(TibrvTransport, String, TibrvQueue, DbRequestCallback, String)
public java.lang.String toPrettyPrintString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |