public static class ThreadReuseExecutor.RunnableWrapper extends Object implements ThreadReuseExecutor.PrioritizedRunnable, Comparable<ThreadReuseExecutor.RunnableWrapper>
NO_WAIT_PRIORITY
Constructor and Description |
---|
RunnableWrapper(Runnable r) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ThreadReuseExecutor.RunnableWrapper o) |
long |
getCreationTime() |
DQPWorkContext |
getDqpWorkContext() |
int |
getPriority()
The execution priority - higher is lower
|
void |
run() |
public RunnableWrapper(Runnable r)
public long getCreationTime()
getCreationTime
in interface ThreadReuseExecutor.PrioritizedRunnable
public int getPriority()
ThreadReuseExecutor.PrioritizedRunnable
getPriority
in interface ThreadReuseExecutor.PrioritizedRunnable
public DQPWorkContext getDqpWorkContext()
getDqpWorkContext
in interface ThreadReuseExecutor.PrioritizedRunnable
public int compareTo(ThreadReuseExecutor.RunnableWrapper o)
compareTo
in interface Comparable<ThreadReuseExecutor.RunnableWrapper>
Copyright © 2020. All rights reserved.