|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An InvalidationGroup (IG) is the meeting point of all caches and invaliders working for the same cached information. For example, two entity beans based on the same database information will share their cache invalidation so that a modification performed on the bean of one of the deployed EJB will imply a cache invalidation in the cache of the other EJB. In this case, we say that both EJBs work in the same InvalidationGroup.
Revisions:
21 septembre 2002 Sacha Labourey:
InvalidationManagerMBean
Method Summary | |
void |
addReference()
Used to know when to definitively remove this IG. |
boolean |
getAsynchronousInvalidation()
Return the default (a-)synchronous communication scheme used |
String |
getGroupName()
Return the name (i.e. |
InvalidationManagerMBean |
getInvalidationManager()
Return the InvalidationManager (IM) to which is linked this group (IG) |
int |
getReferenceCount()
Return the value of the usage counter for this IG. |
void |
invalidate(Serializable key)
Invalidate a single key in all caches associated with this IG |
void |
invalidate(Serializable[] keys)
Invalidate a set of keys in all caches associated with this IG |
void |
invalidate(Serializable[] keys,
boolean asynchronous)
Invalidate a set of keys in all caches associated with this IG specifying a prefered invalidation mode (synchronous vs. |
void |
invalidate(Serializable key,
boolean asynchronous)
Invalidate a single key in all caches associated with this IG specifying a prefered invalidation mode (synchronous vs. |
void |
invalidateAll()
All entries in all the caches associated with this invalidation group should be invalidated. |
void |
invalidateAll(boolean asynchronous)
All entries in all the caches associated with this invalidation group should be invalidated using specified mode. |
void |
register(Invalidatable registered)
Register an Invalidatable instance has a subscriber of this InvalidationGroup. |
void |
removeReference()
Decrease the usage counter. |
void |
setAsynchronousInvalidation(boolean async)
Set the default mode for managing invalidations in this IG: synchronous or asynchronous. |
void |
unregister(Invalidatable registered)
Unregister an Invalidatable instance |
Method Detail |
public String getGroupName()
public void invalidate(Serializable key)
key
- The key to be invalidatedpublic void invalidate(Serializable key, boolean asynchronous)
key
- The key to be invalidated in the cacheasynchronous
- if true, the invalidation will be, if possible, performed asynchronouslypublic void invalidate(Serializable[] keys)
keys
- Set of keys to be invalidatedpublic void invalidate(Serializable[] keys, boolean asynchronous)
keys
- keys to be invalidatedasynchronous
- if true, the invalidation will be, if possible, performed asynchronouslypublic void invalidateAll()
public void invalidateAll(boolean asynchronous)
public void addReference()
public void removeReference()
public int getReferenceCount()
public void register(Invalidatable registered)
registered
- Subscribing instancepublic void unregister(Invalidatable registered)
registered
- Unsubscribing instancepublic void setAsynchronousInvalidation(boolean async)
async
- If true, asynchronous communication should be used if possible.public boolean getAsynchronousInvalidation()
public InvalidationManagerMBean getInvalidationManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |