protected class NonBlockingLockManagerWithNewDesign.StatisticsTask extends Object implements Runnable
ResourceQueue
and various other moving averages for the service as a whole.NonBlockingLockManagerWithNewDesign.statisticsTask
Modifier and Type | Method and Description |
---|---|
void |
run()
This method updates the
QueueSizeMovingAverageTask for each
ResourceQueue each time it is run. |
public void run()
QueueSizeMovingAverageTask
for each
ResourceQueue
each time it is run.
Note: This is written so as to not cause hard references to be
retained to the ResourceQueue
s. The
QueueSizeMovingAverageTask
is a member field for the
ResourceQueue
for the same reason. This way the statistics
for active ResourceQueue
s are tracked and may be reported
but ResourceQueue
s will remain strongly reachable only if
there are tasks holding their locks.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.