Class PrioritizedCallable<T>

java.lang.Object
org.elasticsearch.common.util.concurrent.PrioritizedCallable<T>
All Implemented Interfaces:
java.lang.Comparable<PrioritizedCallable>, java.util.concurrent.Callable<T>

public abstract class PrioritizedCallable<T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>, java.lang.Comparable<PrioritizedCallable>
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected PrioritizedCallable​(Priority priority)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(PrioritizedCallable pc)  
    Priority priority()  
    static <T> PrioritizedCallable<T> wrap​(java.util.concurrent.Callable<T> callable, Priority priority)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.concurrent.Callable

    call