public void invalidate(final CachedSubscriptionPollResponse response) {
    if (Objects.isNull(response)) {
      LOGGER.warn("null response when invalidating, skip it");
      return;
    }
    this.cache.invalidate(response);
    response.invalidateByteBuffer();
  }
This class is used to control memory usage of cache {@link SubscriptionPollResponse} in {@link
CachedSubscriptionPollResponse}.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/cache/SubscriptionPollResponseCache.java