code: private void setLastReadDate(Peer peer, long date) {
          storage.put(peer.getUnuqueId(), new ReadState(date).toByteArray());
          readStates.put(peer, date);
      }
docs: Setting last read date for peer
  
  @param peer peer
  @param date date