Class PageAllocator

java.lang.Object
org.elasticsearch.transport.nio.PageAllocator
All Implemented Interfaces:
IntFunction<org.elasticsearch.nio.Page>

public class PageAllocator extends Object implements IntFunction<org.elasticsearch.nio.Page>
  • Constructor Details

    • PageAllocator

      public PageAllocator(org.elasticsearch.common.util.PageCacheRecycler recycler)
  • Method Details

    • apply

      public org.elasticsearch.nio.Page apply(int length)
      Specified by:
      apply in interface IntFunction<org.elasticsearch.nio.Page>