log.debug("Enter: InOrderInvoker::addOutOfOrderInvokerBeansToList " + sequenceID + ", " + list);
RMDBean rmdBean = SandeshaUtil.getRMDBeanFromSequenceId(storageManager, sequenceID);
if(rmdBean != null && rmdBean.getOutOfOrderRanges() != null){
RangeString rangeString = rmdBean.getOutOfOrderRanges();
//we now have the set of ranges that can be delivered out of order.
//Look for any invokable message that lies in one of those ranges
InvokerBean selector = new InvokerBean();
selector.setSequenceID(sequenceID);
Iterator invokerBeansIterator =
storageManager.getInvokerBeanMgr().find(selector).iterator();
while(invokerBeansIterator.hasNext()){
InvokerBean invokerBean = (InvokerBean)invokerBeansIterator.next();
if(rangeString.isMessageNumberInRanges(invokerBean.getMsgNo())){
//an invoker bean that has not been deleted and lies in an out
//or order range - we can add this to the list
list.add(invokerBean);
}
}