|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvalidationGroup
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 |
---|
String getGroupName()
void invalidate(Serializable key)
key
- The key to be invalidatedvoid invalidate(Serializable key, boolean asynchronous)
key
- The key to be invalidated in the cacheasynchronous
- if true, the invalidation will be, if possible, performed asynchronouslyvoid invalidate(Serializable[] keys)
keys
- Set of keys to be invalidatedvoid invalidate(Serializable[] keys, boolean asynchronous)
keys
- keys to be invalidatedasynchronous
- if true, the invalidation will be, if possible, performed asynchronouslyvoid invalidateAll()
void invalidateAll(boolean asynchronous)
void addReference()
void removeReference()
int getReferenceCount()
void register(Invalidatable registered)
registered
- Subscribing instancevoid unregister(Invalidatable registered)
registered
- Unsubscribing instancevoid setAsynchronousInvalidation(boolean async)
async
- If true, asynchronous communication should be used if possible.boolean getAsynchronousInvalidation()
InvalidationManagerMBean getInvalidationManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |