code: public void setLastReadPacket(int channelId, Packet packet) {
          final ChannelInfo info = getChannelInfo(channelId);
          // grab last packet
          Packet prevPacket = info.getReadPacket();
          // set new one
          info.setReadPacket(packet);
          // free the previous packet
          freePacket(prevPacket);
      }
docs: Setter for last read packet.
  
  @param channelId
  Channel id
  @param packet
  Packet