org.grinvin.invariants

Interface PrioritizedRunnable

All Superinterfaces:
Comparable, Runnable
Known Implementing Classes:
AbstractPrioritizedRunnable

public interface PrioritizedRunnable
extends Runnable, Comparable

Implementation of a Runnable that includes an integer priority.

Method Summary

int
getPriority()
Get the priority of this PrioritizedRunnable.

Method Details

getPriority

public int getPriority()
Get the priority of this PrioritizedRunnable. 0 if we want to be computed in the background.