use of com.swiftmq.jms.smqp.v500.FetchBrowserMessageRequest in project swiftmq-client by iitsoftware.
the class QueueBrowserImpl method hasMoreElements.
/**
* Method declaration
*
* @return
* @see
*/
public boolean hasMoreElements() {
if (closed) {
return false;
}
if (lastMessage == null) {
FetchBrowserMessageReply reply = null;
try {
reply = (FetchBrowserMessageReply) requestRegistry.request(new FetchBrowserMessageRequest(dispatchId, browserDispatchId, resetRequired));
resetRequired = false;
} catch (Exception e) {
}
if (reply.isOk() && reply.getMessageEntry() != null) {
lastMessage = reply.getMessageEntry().getMessage();
}
}
return (lastMessage != null);
}
use of com.swiftmq.jms.smqp.v500.FetchBrowserMessageRequest in project swiftmq-client by iitsoftware.
the class QueueBrowserImpl method hasMoreElements.
/**
* Method declaration
*
* @return
* @see
*/
public boolean hasMoreElements() {
if (closed) {
return false;
}
if (lastMessage == null) {
FetchBrowserMessageReply reply = null;
try {
reply = (FetchBrowserMessageReply) requestRegistry.request(new FetchBrowserMessageRequest(dispatchId, browserDispatchId, resetRequired));
resetRequired = false;
} catch (Exception e) {
}
if (reply.isOk() && reply.getMessageEntry() != null) {
lastMessage = reply.getMessageEntry().getMessage();
}
}
return (lastMessage != null);
}
use of com.swiftmq.jms.smqp.v500.FetchBrowserMessageRequest in project swiftmq-client by iitsoftware.
the class QueueBrowserImpl method hasMoreElements.
/**
* Method declaration
*
* @return
* @see
*/
public boolean hasMoreElements() {
if (closed) {
return false;
}
if (lastMessage == null) {
FetchBrowserMessageReply reply = null;
try {
reply = (FetchBrowserMessageReply) requestRegistry.request(new FetchBrowserMessageRequest(dispatchId, browserDispatchId, resetRequired));
resetRequired = false;
} catch (Exception e) {
}
if (reply.isOk() && reply.getMessageEntry() != null) {
lastMessage = reply.getMessageEntry().getMessage();
}
}
return (lastMessage != null);
}
Aggregations