Class PageAllocator<T>


  • public abstract class PageAllocator<T>
    extends java.lang.Object
    • Constructor Detail

      • PageAllocator

        public PageAllocator()
    • Method Detail

      • newPage

        public abstract T newPage()
      • pageSize

        public abstract int pageSize()
      • emptyPages

        public abstract T[] emptyPages()
      • bytesPerPage

        public abstract long bytesPerPage()
      • estimateMemoryUsage

        public final long estimateMemoryUsage​(long size)
      • of

        public static <T> PageAllocator.Factory<T> of​(int pageSize,
                                                      long bytesPerPage,
                                                      java.util.function.Supplier<T> newPage,
                                                      T[] emptyPages)
      • ofArray

        public static <T> PageAllocator.Factory<T> ofArray​(java.lang.Class<T> arrayClass,
                                                           int pageSize)