|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.extra.ScopeEventListenerImpl
Implementation of a ScopeEventListener that keeps track of the scope flush events. We are not using any synchronized so that this does not become a bottleneck. The consequence is that on retrieving values, the operations that are currently being done won't be counted.
Field Summary | |
static int |
APPLICATION_SCOPE
Application scope number |
static int |
NB_SCOPES
Number of known scopes |
static int |
PAGE_SCOPE
Page scope number |
static int |
REQUEST_SCOPE
Request scope number |
static int |
SESSION_SCOPE
Session scope number |
Constructor Summary | |
ScopeEventListenerImpl()
|
Method Summary | |
int |
getApplicationScopeFlushCount()
Gets the flush count for scope APPLICATION_SCOPE . |
int |
getPageScopeFlushCount()
Gets the flush count for scope PAGE_SCOPE . |
int |
getRequestScopeFlushCount()
Gets the flush count for scope REQUEST_SCOPE . |
int |
getSessionScopeFlushCount()
Gets the flush count for scope SESSION_SCOPE . |
int |
getTotalScopeFlushCount()
Returns the total flush count. |
void |
scopeFlushed(ScopeEvent event)
Handles all the scope flush events. |
java.lang.String |
toString()
Returns all the flush counter in a string form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NB_SCOPES
public static final int PAGE_SCOPE
public static final int REQUEST_SCOPE
public static final int SESSION_SCOPE
public static final int APPLICATION_SCOPE
Constructor Detail |
public ScopeEventListenerImpl()
Method Detail |
public int getApplicationScopeFlushCount()
APPLICATION_SCOPE
.
public int getPageScopeFlushCount()
PAGE_SCOPE
.
public int getRequestScopeFlushCount()
REQUEST_SCOPE
.
public int getSessionScopeFlushCount()
SESSION_SCOPE
.
public int getTotalScopeFlushCount()
public void scopeFlushed(ScopeEvent event)
scopeFlushed
in interface ScopeEventListener
event
- The scope eventpublic java.lang.String toString()
|
See www.opensymphony.com for more information. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |