public interface ThresholdListener
MemoryController
when a certain threashold was reached.
Can be used to detect certain memory consumption values like 95% full memory which could lead
the JVM to throw an OutOfMemoryError
.
Modifier and Type | Method and Description |
---|---|
int |
getThreshold()
Provides the desired threshold value as percentage when the listener shall be informed.
|
void |
thresholdReached()
Informs the listener that the threshold value has been reached.
|
int getThreshold()
void thresholdReached()
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.