org.ehcache.config.event
Class CacheEventListenerConfigurationBuilder
java.lang.Object
org.ehcache.config.event.CacheEventListenerConfigurationBuilder
- All Implemented Interfaces:
- Builder<CacheEventListenerConfiguration>
public class CacheEventListenerConfigurationBuilder
- extends java.lang.Object
- implements Builder<CacheEventListenerConfiguration>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newEventListenerConfiguration
public static CacheEventListenerConfigurationBuilder newEventListenerConfiguration(java.lang.Class<? extends CacheEventListener<?,?>> listenerClass,
EventType eventType,
EventType... eventTypes)
newEventListenerConfiguration
public static CacheEventListenerConfigurationBuilder newEventListenerConfiguration(java.lang.Class<? extends CacheEventListener<?,?>> listenerClass,
java.util.Set<EventType> eventSetToFireOn)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
constructedWith
public CacheEventListenerConfigurationBuilder constructedWith(java.lang.Object... arguments)
eventOrdering
public CacheEventListenerConfigurationBuilder eventOrdering(EventOrdering eventOrdering)
ordered
public CacheEventListenerConfigurationBuilder ordered()
unordered
public CacheEventListenerConfigurationBuilder unordered()
firingMode
public CacheEventListenerConfigurationBuilder firingMode(EventFiring eventFiringMode)
synchronous
public CacheEventListenerConfigurationBuilder synchronous()
asynchronous
public CacheEventListenerConfigurationBuilder asynchronous()
build
public DefaultCacheEventListenerConfiguration build()
- Specified by:
build
in interface Builder<CacheEventListenerConfiguration>