|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Main service dealing with cache invalidation. While more than one instance may be running at the same time, most of the time, only one will be used. Each InvalidationManager (IM) gives access to a set of InvalidationGroup (IG). Each IG concerns a particular cache and links subscribers that listen for cache invalidations messages with cache invaliders that will create invalidation messages. Thus, to start, a given service will first ask for a specific IG to work with. This is an in-VM operation: each cache and invalider works with a *locally* bound IM. If you want to extend the in-VM mode of operation, you need to provide (possibly dynamically), your IM-Bridge. A bridge forwards cache-invalidation messages on other nodes. It may select which IG are bridged. More than one cache can be bound to a given IM. As some applications needs to be able to send in batch invalidation messages that concern more than one cache. To satisfy this need, a global batchInvalidate method is available at the IM level.
Revisions:
21 septembre 2002 Sacha Labourey:
InvalidationManager
Field Summary |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary | |
void |
batchInvalidate(BatchInvalidation[] invalidations)
Invalidate a set of IG managed by this IM. |
void |
batchInvalidate(BatchInvalidation[] invalidations,
boolean asynchronous)
Identical as previous method. |
InvalidationGroup |
getInvalidationGroup(String groupName)
Returns a given InvalidationGroup instance that is associated with the group name. |
Collection |
getInvalidationGroups()
Return the set of all InvalidationGroup currently managed by this IM |
void |
invalidateAll(String groupName)
Invalidate all entries for the specified group name. |
void |
invalidateAll(String groupName,
boolean async)
Invalidate all entries for the specified group name using the specified mode. |
BridgeInvalidationSubscription |
registerBridgeListener(InvalidationBridgeListener listener)
Allow the subscription of a given Bridge to this IM |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Method Detail |
public InvalidationGroup getInvalidationGroup(String groupName)
groupName
- Name of the group (of the cache for example).
public Collection getInvalidationGroups()
public BridgeInvalidationSubscription registerBridgeListener(InvalidationBridgeListener listener)
listener
- The Bridge registring for invalidation messages
BridgeInvalidationSubscription
public void batchInvalidate(BatchInvalidation[] invalidations)
invalidations
- A set of BatchcInvalidations. Each BatchInvalidation instance contains invalidations
for a given InvalidationGroup.public void batchInvalidate(BatchInvalidation[] invalidations, boolean asynchronous)
invalidations
- Invalidation messagesasynchronous
- Indicates if the briges should try to do asynchronous invalidations (accross the
network for example) or if a synchronous behaviour is required.public void invalidateAll(String groupName)
groupName
- invalidation group namepublic void invalidateAll(String groupName, boolean async)
groupName
- invalidate group nameasync
- mode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |