Class SecureBytesRefRecycler

java.lang.Object
org.elasticsearch.xpack.security.support.SecureBytesRefRecycler
All Implemented Interfaces:
Recycler<org.apache.lucene.util.BytesRef>

public final class SecureBytesRefRecycler extends Object implements Recycler<org.apache.lucene.util.BytesRef>
A Recycler for BytesRef pages which clears the obtained pages on release, out of an abundance of caution when the pages may contain sensitive data.
  • Constructor Details

    • SecureBytesRefRecycler

      public SecureBytesRefRecycler(Recycler<org.apache.lucene.util.BytesRef> delegate)
  • Method Details

    • obtain

      public Recycler.V<org.apache.lucene.util.BytesRef> obtain()
      Specified by:
      obtain in interface Recycler<org.apache.lucene.util.BytesRef>
    • pageSize

      public int pageSize()
      Specified by:
      pageSize in interface Recycler<org.apache.lucene.util.BytesRef>