| Constructor and Description |
|---|
BrowserImpl(BrowserProperties props,
FlowReceiver receiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Browser.
|
BytesXMLMessage |
getNext()
Retrieve the next message from the Browser's local message buffer, if one
is available, waiting if necessary up to the timeout configured in
BrowserProperties. |
BytesXMLMessage |
getNext(int timeoutInMillis)
Retrieve the next message from the Browser's local message buffer, if one
is available, waiting if necessary up to
timeoutInMillis ms. |
BytesXMLMessage |
getNextNoWait()
If there is at least one message available in the Browser's local message
buffer, return it immediately; otherwise, return null.
|
boolean |
hasMore()
Returns true if there is at least one message available in the Browser's
local message buffer.
|
void |
remove(BytesXMLMessage message)
Remove a message from the appliance's Queue Endpoint.
|
void |
setFlowReceiver(FlowReceiver receiver) |
public BrowserImpl(BrowserProperties props, FlowReceiver receiver)
public void close()
Browserpublic void setFlowReceiver(FlowReceiver receiver)
public BytesXMLMessage getNext() throws JCSMPException
BrowserBrowserProperties.
If you want to wait indefinitely, use Browser.getNext(int) with a
timeoutInMillis of 0.getNext in interface Browsernull, if timed out.JCSMPException - on errorpublic BytesXMLMessage getNext(int timeoutInMillis) throws JCSMPException
BrowsertimeoutInMillis ms.
Browser.close().getNext in interface BrowsertimeoutInMillis - Time to wait for a message.null, if timed out.JCSMPException - on errorpublic BytesXMLMessage getNextNoWait() throws JCSMPException
BrowsergetNextNoWait in interface BrowserJCSMPException - on errorpublic boolean hasMore()
throws JCSMPException
BrowserBrowser.hasMore() or
Browser.getNext() might return true and a message respectively.hasMore in interface BrowserJCSMPException - on errorpublic void remove(BytesXMLMessage message) throws JCSMPException
Browserremove in interface Browsermessage - Message to remove from the Endpoint.JCSMPException - on errorCopyright 2004-2019 Solace Corporation. All rights reserved.