Package COM.activesw.api.client
Interface BrokerQueueBrowser
- All Known Subinterfaces:
BrokerLockedQueueBrowser
- All Known Implementing Classes:
BrokerClientQueueBrowser
,BrokerForwardQueueBrowser
,BrokerLockedClientQueueBrowser
,BrokerLockedForwardQueueBrowser
,COM.activesw.api.client.BrokerQueueBrowserImpl
public interface BrokerQueueBrowser
-
Method Summary
Modifier and TypeMethodDescriptionbrowseEvents
(int max_events, int msecs) Browse one or more events from the queue.void
Close the current queue browser object.Get information on the current queue browser.Get the current filters set on the queue browser.void
Remove all existing filters on the queue browser.void
setFilter
(BrokerFilterDescriptor filter) Set filter for queue browser's browse operation.void
setFilters
(BrokerFilterDescriptor[] filters) Set filters for queue browser's browse operation.void
setPosition
(int position) Set the browse cursor to the specified position on the queue.
-
Method Details
-
getBrowserInfo
Get information on the current queue browser.- Returns:
- BrokerQueueBrowserInfo object
- Throws:
BrokerException
-
setPosition
Set the browse cursor to the specified position on the queue.- Parameters:
position
- The queue position to set- Throws:
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerQueueBrowserException
- If the position is out of bounds or the queue is exhausted.BrokerException
-
setFilter
Set filter for queue browser's browse operation.- Throws:
BrokerNullParameterException
- If description is null.BrokerUnknownEventTypeException
- If no events exist in the specified scope on the broker.COM.activesw.api.client.BrokerInvalidFilterException
- If the specified filter expression is invalid.BrokerException
-
setFilters
Set filters for queue browser's browse operation.- Throws:
BrokerNullParameterException
- If description is null.BrokerUnknownEventTypeException
- If no events exist in the specified scope on the broker.COM.activesw.api.client.BrokerInvalidFilterException
- If the specified filter expression is invalid.BrokerException
-
resetFilters
Remove all existing filters on the queue browser.- Throws:
BrokerException
-
getFilters
Get the current filters set on the queue browser.- Returns:
- Array of BrokerFilterDescriptor
- Throws:
BrokerException
-
browseEvents
Browse one or more events from the queue. Returns immediately with either events, or an error if the end of of the queue is reached. The number of events being returned is not guaranteed to be 'max_events' even if there are more than than many events in the client's queue. Any number of events up to the value of 'max_events' may be returned. In addition to the listed exceptions, any communications exception can be thrown.- Throws:
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerTimeoutException
- If the timeout is reached before any events arrive.BrokerException
-
closeQueueBrowser
Close the current queue browser object.- Throws:
BrokerException
-