org.ehcache.config.event
Class DefaultCacheEventListenerConfiguration
java.lang.Object
org.ehcache.internal.classes.ClassInstanceConfiguration<CacheEventListener<?,?>>
org.ehcache.config.event.DefaultCacheEventListenerConfiguration
- All Implemented Interfaces:
- CacheEventListenerConfiguration, ServiceConfiguration<CacheEventListenerProvider>
public class DefaultCacheEventListenerConfiguration
- extends ClassInstanceConfiguration<CacheEventListener<?,?>>
- implements CacheEventListenerConfiguration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCacheEventListenerConfiguration
public DefaultCacheEventListenerConfiguration(java.lang.Class<? extends CacheEventListener<?,?>> clazz,
java.lang.Object... arguments)
DefaultCacheEventListenerConfiguration
public DefaultCacheEventListenerConfiguration(CacheEventListener<?,?> listener)
getServiceType
public java.lang.Class<CacheEventListenerProvider> getServiceType()
- Description copied from interface:
ServiceConfiguration
- Indicates which service this configuration works with.
- Specified by:
getServiceType
in interface ServiceConfiguration<CacheEventListenerProvider>
- Returns:
- the service type
setEventFiringMode
public void setEventFiringMode(EventFiring firingMode)
setEventOrderingMode
public void setEventOrderingMode(EventOrdering orderingMode)
setEventsToFireOn
public void setEventsToFireOn(java.util.EnumSet<EventType> fireOn)
firingMode
public EventFiring firingMode()
- Description copied from interface:
CacheEventListenerConfiguration
- Indicates which
firing mode
to use
- Specified by:
firingMode
in interface CacheEventListenerConfiguration
- Returns:
- the firing mode to use
orderingMode
public EventOrdering orderingMode()
- Description copied from interface:
CacheEventListenerConfiguration
- Indicates which
ordering mode
to use
- Specified by:
orderingMode
in interface CacheEventListenerConfiguration
- Returns:
- the ordering mode to use
fireOn
public java.util.EnumSet<EventType> fireOn()
- Description copied from interface:
CacheEventListenerConfiguration
- Indicates on which
EventType
an event has to be fired
- Specified by:
fireOn
in interface CacheEventListenerConfiguration
- Returns:
- the set of
EventType
to fire on