Class PrioritizedRunnable

org.elasticsearch.common.util.concurrent.PrioritizedRunnable
All Implemented Interfaces:
<
Direct Known Subclasses:
SourcePrioritizedRunnable

public abstract class PrioritizedRunnable extends implements , <PrioritizedRunnable>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    long
    The elapsed time in milliseconds since this instance was created, as calculated by the difference between at the time of creation, and at the time of invocation of this method
    long
     
     
     runnable, Priority priority)
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from interface java.lang.

  • Constructor Details

    • PrioritizedRunnable

      protected PrioritizedRunnable(Priority priority)
  • Method Details

    • wrap

      public static  runnable, Priority priority)
    • getCreationDateInNanos

      public long getCreationDateInNanos()
    • getAgeInMillis

      public long getAgeInMillis()
      The elapsed time in milliseconds since this instance was created, as calculated by the difference between at the time of creation, and at the time of invocation of this method
      Returns:
      the age in milliseconds calculated
    • compareTo

      public int compareTo(PrioritizedRunnable pr)
      Specified by:
       in interface <PrioritizedRunnable>
    • priority

      public Priority priority()