public void doBrowse(List<Message> browseList, int max) { final ConnectionContext connectionContext = createConnectionContext(); try { int maxPageInAttempts = 1; if (max > 0) { messagesLock.readLock().lock(); try { maxPageInAttempts += (messages.size() / max); } finally { messagesLock.readLock().unlock(); } while (shouldPageInMoreForBrowse(max) && maxPageInAttempts-- > 0) { pageInMessages(!memoryUsage.isFull(110), max); } } doBrowseList(browseList, max, dispatchPendingList, pagedInPendingDispatchLock, connectionContext, "redeliveredWaitingDispatch+pagedInPendingDispatch"); doBrowseList(browseList, max, pagedInMessages, pagedInMessagesLock, connectionContext, "pagedInMessages"); // we need a store iterator to walk messages on disk, independent of the cursor which is tracking // the next message batch } catch (BrokerStoppedException ignored) { } catch (Exception e) { LOG.error("Problem retrieving message for browse", e); } }
pageInMessages(hasBrowsers && getMaxBrowsePageSize() > 0, getMaxPageSize()); } catch (Throwable e) { LOG.error("Failed to page in more queue messages ", e);
public void doBrowse(List<Message> browseList, int max) { final ConnectionContext connectionContext = createConnectionContext(); try { int maxPageInAttempts = 1; if (max > 0) { messagesLock.readLock().lock(); try { maxPageInAttempts += (messages.size() / max); } finally { messagesLock.readLock().unlock(); } while (shouldPageInMoreForBrowse(max) && maxPageInAttempts-- > 0) { pageInMessages(!memoryUsage.isFull(110), max); } } doBrowseList(browseList, max, dispatchPendingList, pagedInPendingDispatchLock, connectionContext, "redeliveredWaitingDispatch+pagedInPendingDispatch"); doBrowseList(browseList, max, pagedInMessages, pagedInMessagesLock, connectionContext, "pagedInMessages"); // we need a store iterator to walk messages on disk, independent of the cursor which is tracking // the next message batch } catch (BrokerStoppedException ignored) { } catch (Exception e) { LOG.error("Problem retrieving message for browse", e); } }
public void doBrowse(List<Message> browseList, int max) { final ConnectionContext connectionContext = createConnectionContext(); try { int maxPageInAttempts = 1; if (max > 0) { messagesLock.readLock().lock(); try { maxPageInAttempts += (messages.size() / max); } finally { messagesLock.readLock().unlock(); } while (shouldPageInMoreForBrowse(max) && maxPageInAttempts-- > 0) { pageInMessages(!memoryUsage.isFull(110), max); } } doBrowseList(browseList, max, dispatchPendingList, pagedInPendingDispatchLock, connectionContext, "redeliveredWaitingDispatch+pagedInPendingDispatch"); doBrowseList(browseList, max, pagedInMessages, pagedInMessagesLock, connectionContext, "pagedInMessages"); // we need a store iterator to walk messages on disk, independent of the cursor which is tracking // the next message batch } catch (BrokerStoppedException ignored) { } catch (Exception e) { LOG.error("Problem retrieving message for browse", e); } }
public void doBrowse(List<Message> browseList, int max) { final ConnectionContext connectionContext = createConnectionContext(); try { int maxPageInAttempts = 1; if (max > 0) { messagesLock.readLock().lock(); try { maxPageInAttempts += (messages.size() / max); } finally { messagesLock.readLock().unlock(); } while (shouldPageInMoreForBrowse(max) && maxPageInAttempts-- > 0) { pageInMessages(!memoryUsage.isFull(110), max); } } doBrowseList(browseList, max, dispatchPendingList, pagedInPendingDispatchLock, connectionContext, "redeliveredWaitingDispatch+pagedInPendingDispatch"); doBrowseList(browseList, max, pagedInMessages, pagedInMessagesLock, connectionContext, "pagedInMessages"); // we need a store iterator to walk messages on disk, independent of the cursor which is tracking // the next message batch } catch (BrokerStoppedException ignored) { } catch (Exception e) { LOG.error("Problem retrieving message for browse", e); } }
pageInMessages(pendingBrowserDispatch != null);
public void doBrowse(List<Message> browseList, int max) { final ConnectionContext connectionContext = createConnectionContext(); try { pageInMessages(false); List<MessageReference> toExpire = new ArrayList<MessageReference>();
pageInMessages(hasBrowsers && getMaxBrowsePageSize() > 0, getMaxPageSize()); } catch (Throwable e) { LOG.error("Failed to page in more queue messages ", e);
pageInMessages(hasBrowsers && getMaxBrowsePageSize() > 0, getMaxPageSize()); } catch (Throwable e) { LOG.error("Failed to page in more queue messages ", e);
pageInMessages(hasBrowsers && getMaxBrowsePageSize() > 0, getMaxPageSize()); } catch (Throwable e) { LOG.error("Failed to page in more queue messages ", e);