|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.impl.internal.classes.ClassInstanceConfiguration<CacheEventListener<?,?>>
org.ehcache.impl.config.event.DefaultCacheEventListenerConfiguration
public class DefaultCacheEventListenerConfiguration
CacheEventListenerConfiguration
implementation
Constructor Summary | |
---|---|
DefaultCacheEventListenerConfiguration(java.util.Set<EventType> fireOn,
CacheEventListener<?,?> listener)
Creates a new DefaultCacheEventListenerConfiguration with the provided parameters. |
|
DefaultCacheEventListenerConfiguration(java.util.Set<EventType> fireOn,
java.lang.Class<? extends CacheEventListener<?,?>> clazz,
java.lang.Object... arguments)
Creates a new DefaultCacheEventListenerConfiguration with the provided parameters. |
Method Summary | |
---|---|
java.util.EnumSet<EventType> |
fireOn()
Indicates on which EventType an event has to be fired |
EventFiring |
firingMode()
Indicates which firing mode to use |
java.lang.Class<CacheEventListenerProvider> |
getServiceType()
Indicates which service this configuration works with. |
EventOrdering |
orderingMode()
Indicates which ordering mode to use |
void |
setEventFiringMode(EventFiring firingMode)
Sets the event firing mode on this configuration object. |
void |
setEventOrderingMode(EventOrdering orderingMode)
Sets the event orderign mode on this configuration object. |
Methods inherited from class org.ehcache.impl.internal.classes.ClassInstanceConfiguration |
---|
getArguments, getClazz, getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCacheEventListenerConfiguration(java.util.Set<EventType> fireOn, java.lang.Class<? extends CacheEventListener<?,?>> clazz, java.lang.Object... arguments)
DefaultCacheEventListenerConfiguration
with the provided parameters.
EventFiring.ASYNCHRONOUS
EventOrdering.UNORDERED
fireOn
- the events to fire onclazz
- the cache event listener classarguments
- optional constructor argumentssetEventFiringMode(EventFiring)
,
setEventOrderingMode(EventOrdering)
public DefaultCacheEventListenerConfiguration(java.util.Set<EventType> fireOn, CacheEventListener<?,?> listener)
DefaultCacheEventListenerConfiguration
with the provided parameters.
EventFiring.ASYNCHRONOUS
EventOrdering.UNORDERED
fireOn
- the events to fire onlistener
- the cache event listener instancesetEventFiringMode(EventFiring)
,
setEventOrderingMode(EventOrdering)
Method Detail |
---|
public java.lang.Class<CacheEventListenerProvider> getServiceType()
getServiceType
in interface ServiceConfiguration<CacheEventListenerProvider>
public void setEventFiringMode(EventFiring firingMode)
firingMode
- the event firing modepublic void setEventOrderingMode(EventOrdering orderingMode)
orderingMode
- the event ordering modepublic EventFiring firingMode()
firing mode
to use
firingMode
in interface CacheEventListenerConfiguration
public EventOrdering orderingMode()
ordering mode
to use
orderingMode
in interface CacheEventListenerConfiguration
public java.util.EnumSet<EventType> fireOn()
EventType
an event has to be fired
fireOn
in interface CacheEventListenerConfiguration
EventType
to fire on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |