Package com.netlang.queue
Class NQQueue
java.lang.Object
com.netlang.queue.NQQueue
The
SQLQuery class-
Constructor Summary
ConstructorsConstructorDescriptionNQQueue(String name, boolean persistent, NQManager con, com.netlang.queue.impl.QConnection qcon, com.netlang.session.NetlangSession session, String handleid, String resourceid, String agentid, boolean topic) Initializes a newly createdSQLQueryInitializes a newly createdSQLQuery -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()get(long timeout) getAndClear(long timeout) getResponse(NQMessage message, long timeout) getResponse(String id, long timeout) getText(long timeout) getTextAndClear(long timeout) voidopen()Open filevoidpurge()put(NQMessage message, boolean wantResponse, String responseQueue, boolean waitForResponse, long timeout) voidputResponse(NQMessage responseToMessage, NQMessage message) voidputResponseText(NQMessage responseToMessage, String text) putText(String text, boolean wantResponse, String responseQueue, boolean waitForResponse, long timeout) query()Query the queue, the query does not remove messages
-
Constructor Details
-
NQQueue
public NQQueue(String name, com.netlang.queue.impl.QConnection qcon, boolean topic) throws com.net4z.APIException Initializes a newly createdSQLQuery- Throws:
com.net4z.APIException
-
NQQueue
public NQQueue(String name, boolean persistent, NQManager con, com.netlang.queue.impl.QConnection qcon, com.netlang.session.NetlangSession session, String handleid, String resourceid, String agentid, boolean topic) throws com.net4z.APIException Initializes a newly createdSQLQuery- Throws:
com.net4z.APIException
-
-
Method Details
-
open
public void open() throws com.net4z.APIExceptionOpen file- Throws:
com.net4z.APIException
-
putText
public NQMessage putText(String text, boolean wantResponse, String responseQueue, boolean waitForResponse, long timeout) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
put
public NQMessage put(NQMessage message, boolean wantResponse, String responseQueue, boolean waitForResponse, long timeout) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
putResponse
public void putResponse(NQMessage responseToMessage, NQMessage message) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
putResponseText
- Throws:
com.net4z.APIException
-
getResponse
- Throws:
com.net4z.APIException
-
getResponse
- Throws:
com.net4z.APIException
-
query
Query the queue, the query does not remove messages- Throws:
Exception
-
getById
- Throws:
com.net4z.APIException
-
getText
- Throws:
com.net4z.APIException
-
getTextAndClear
- Throws:
com.net4z.APIException
-
get
- Throws:
com.net4z.APIException
-
getAndClear
- Throws:
com.net4z.APIException
-
purge
public void purge() throws com.net4z.APIException- Throws:
com.net4z.APIException
-
close
public void close() throws com.net4z.APIException- Throws:
com.net4z.APIException
-