public class LastStatisticsHolder<S> extends Object
Constructor and Description |
---|
LastStatisticsHolder() |
LastStatisticsHolder(S lastStatistics) |
Modifier and Type | Method and Description |
---|---|
boolean |
acquireLastStatisticsLock() |
S |
getLastStatistics() |
void |
releaseLastStatisticsLock()
Releases the acquired lock and notifies any waiting parties
|
void |
updateLastStatistics(S lastStatistics)
Updates with the last attempt for getting statistics.
|
boolean |
validCache(long statisticsInterval) |
void |
waitForLastStatistics()
Waits until lock has been released
|
public LastStatisticsHolder()
public LastStatisticsHolder(S lastStatistics)
public boolean validCache(long statisticsInterval)
public boolean acquireLastStatisticsLock()
public void releaseLastStatisticsLock()
waitForLastStatistics()
public void waitForLastStatistics()
public void updateLastStatistics(S lastStatistics)
lastStatistics
- can be null.public S getLastStatistics()
Copyright © GigaSpaces.