private void removeAcked(ArrayList<RecordInfo> acks){
  for (  RecordInfo info : acks) {
    AckDescribe ack=(AckDescribe)DescribeJournal.newObjectEncoding(info,null);
    HashMap<Long,ReferenceDescribe> referenceDescribeHashMap=messageRefs.get(info.id);
    referenceDescribeHashMap.remove(ack.refEncoding.queueID);
    if (referenceDescribeHashMap.size() == 0) {
      messages.remove(info.id);
      messageRefs.remove(info.id);
    }
  }
}

private void removeAcked ( ArrayList < RecordInfo > acks ) { for ( RecordInfo info : acks ) { AckDescribe ack = ( AckDescribe ) DescribeJournal . newObjectEncoding ( info , null ) ; HashMap < Long , ReferenceDescribe > referenceDescribeHashMap = messageRefs . get ( info . id ) ; referenceDescribeHashMap . remove ( ack . refEncoding . queueID ) ; if ( referenceDescribeHashMap . size ( ) == 0 ) { messages . remove ( info . id ) ; messageRefs . remove ( info . id ) ; } } }
go back through the messages and message refs we found in the journal and remove the ones that have been acked .
