Make length() and byteLength() virtual
Incorportate queue size into scheduling metric