public interface IStateListener
Modifier and Type | Method and Description |
---|---|
void |
stateChanged(long queueLength,
int instanceId) |
void stateChanged(long queueLength, int instanceId)
queueLength
- the length of the resource's queueinstanceId
- an identifier for the resource instance. A resource instance could be a CPU core.
If the resource has only one instance, the instanceId should be 0 for this
instance.