public class PrioritizedRunnable extends Object implements Runnable, Comparable<PrioritizedRunnable>
CollectingExecutor
.CollectingExecutor
Constructor and Description |
---|
PrioritizedRunnable(int priority,
Runnable runnable)
Wraps a plain runnable, giving it a priority.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PrioritizedRunnable o) |
int |
getPriority() |
void |
run() |
public int getPriority()
public int compareTo(@Nonnull PrioritizedRunnable o)
compareTo
in interface Comparable<PrioritizedRunnable>
Copyright © 2002-2019 Atlassian. All Rights Reserved.