// TODO: decide how to call this
 public void ackReceived(long messageID) {
   // Remove if received acknowledgment message id contains in retained message list.
   retainedMessageList.remove(messageID);
 }