protected static class PriorityThreadPoolExecutor.PriorityRunnable<E extends Comparable<? super E>> extends Object implements Runnable, Comparable<PriorityThreadPoolExecutor.PriorityRunnable<E>>
| 构造器和说明 |
|---|
PriorityRunnable(Runnable run,
long priority) |
public PriorityRunnable(Runnable run, long priority)
public long getPriority()
public void setPriority(int priority)
public Runnable getRun()
public int compareTo(PriorityThreadPoolExecutor.PriorityRunnable<E> other)
compareTo 在接口中 Comparable<PriorityThreadPoolExecutor.PriorityRunnable<E extends Comparable<? super E>>>Copyright © 2022. All rights reserved.