Class MadviseAdvice

java.lang.Object
org.elasticsearch.nativeaccess.MadviseAdvice

public final class MadviseAdvice extends Object
Constants for use with CloseableMappedByteBuffer.madvise(long, long, int). Values correspond to the POSIX posix_madvise advice constants.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Data will not be needed soon; pages may be freed.
    static final int
    Default access pattern; the OS applies its normal read-ahead and caching policy.
    static final int
    Random access pattern; disables read-ahead.
    static final int
    Sequential access pattern; aggressive read-ahead.
    static final int
    Data will be needed soon; bring pages into memory.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NORMAL

      public static final int NORMAL
      Default access pattern; the OS applies its normal read-ahead and caching policy.
      See Also:
    • RANDOM

      public static final int RANDOM
      Random access pattern; disables read-ahead.
      See Also:
    • SEQUENTIAL

      public static final int SEQUENTIAL
      Sequential access pattern; aggressive read-ahead.
      See Also:
    • WILLNEED

      public static final int WILLNEED
      Data will be needed soon; bring pages into memory.
      See Also:
    • DONTNEED

      public static final int DONTNEED
      Data will not be needed soon; pages may be freed.
      See Also: