org.jboss.cache.invalidation.triggers
Class EntityBeanCacheBatchInvalidatorInterceptor
java.lang.Object
org.jboss.ejb.plugins.AbstractInterceptor (src)
org.jboss.cache.invalidation.triggers.EntityBeanCacheBatchInvalidatorInterceptor
- All Implemented Interfaces:
- AllowedOperationsFlags (src) , ContainerPlugin (src) , Interceptor (src) , Service (src) , XmlLoadable (src)
- public class EntityBeanCacheBatchInvalidatorInterceptor
- extends AbstractInterceptor (src)
- implements XmlLoadable (src)
The role of this interceptor is to detect that an entity has been modified
after an invocation has been performed an use the InvalidationsTxGrouper
static class so that invalidation messages can be groupped and
sent at transaction-commit time in a single batch.
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src) |
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doCacheInvalidations
protected boolean doCacheInvalidations
invalMgr
protected InvalidationManagerMBean (src) invalMgr
ig
protected InvalidationGroup (src) ig
container
protected EntityContainer (src) container
invalidateRelated
public boolean invalidateRelated
EntityBeanCacheBatchInvalidatorInterceptor
public EntityBeanCacheBatchInvalidatorInterceptor()
start
public void start()
throws java.lang.Exception
- Description copied from interface:
Service (src)
- start the service, create is already called
- Specified by:
start
in interface Service (src)
- Overrides:
start
in class AbstractInterceptor (src)
- Throws:
java.lang.Exception
stop
public void stop()
- Description copied from interface:
Service (src)
- stop the service
- Specified by:
stop
in interface Service (src)
- Overrides:
stop
in class AbstractInterceptor (src)
changed
protected boolean changed(Invocation (src) mi,
EntityEnterpriseContext (src) ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
invoke
public java.lang.Object invoke(Invocation (src) mi)
throws java.lang.Exception
- Description copied from interface:
Interceptor (src)
- ???
- Specified by:
invoke
in interface Interceptor (src)
- Overrides:
invoke
in class AbstractInterceptor (src)
- Throws:
java.lang.Exception
setContainer
public void setContainer(Container (src) container)
- Description copied from interface:
ContainerPlugin (src)
- This callback is set by the container so that the plugin may access it
- Specified by:
setContainer
in interface ContainerPlugin (src)
- Overrides:
setContainer
in class AbstractInterceptor (src)
getContainer
public Container (src) getContainer()
- Overrides:
getContainer
in class AbstractInterceptor (src)
importXml
public void importXml(org.w3c.dom.Element element)
throws java.lang.Exception
- Specified by:
importXml
in interface XmlLoadable (src)
- Throws:
java.lang.Exception