|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.utils.LinkedHashMap.Statistics
static class LinkedHashMap.Statistics
An implementation of LinkedHashMap.Statistics used to
track cache performance.
| Field Summary | |
|---|---|
private int |
successfulRequests
A variable used to keep track of the number of successful requests received by the map. |
private int |
totalRemoved
A variable used to keep track of the number of entries that are removed from the map. |
private int |
totalRequests
A variable used to keep track of the number of requests received by the map. |
| Constructor Summary | |
|---|---|
LinkedHashMap.Statistics()
|
|
| Method Summary | |
|---|---|
int |
getSuccessfulRequests()
Returns successfulRequests. |
int |
getTotalRemoved()
Returns totalRemoved. |
int |
getTotalRequests()
Returns totalRequests. |
java.lang.String |
toString()
Return a string representation of this object. |
(package private) void |
updateSuccessfulRequests()
Increments the value of successfulRequests. |
(package private) void |
updateTotalRemoved()
Increments the value of totalRemoved. |
(package private) void |
updateTotalRequests()
Increments the value of totalRequests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private volatile int totalRequests
private volatile int successfulRequests
private volatile int totalRemoved
remove
method is not tracked.
| Constructor Detail |
|---|
LinkedHashMap.Statistics()
| Method Detail |
|---|
final void updateTotalRequests()
totalRequests.
final void updateSuccessfulRequests()
successfulRequests.
final void updateTotalRemoved()
totalRemoved.
public final int getTotalRequests()
totalRequests.
getTotalRequests in interface Map.Statisticspublic final int getSuccessfulRequests()
successfulRequests.
getSuccessfulRequests in interface Map.Statisticspublic final int getTotalRemoved()
totalRemoved.
getTotalRemoved in interface Map.Statisticspublic java.lang.String toString()
toString in class java.lang.Object
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||