public class InterceptorConfigurationBuilder extends AbstractCustomInterceptorsConfigurationChildBuilder implements Builder<InterceptorConfiguration>
getCustomInterceptorsBuilder
public InterceptorConfigurationBuilder after(Class<? extends CommandInterceptor> after)
CacheConfigurationException
will be thrown when the
cache starts.after
- the class of the interceptor to look forpublic InterceptorConfigurationBuilder before(Class<? extends CommandInterceptor> before)
CacheConfigurationException
will be thrown when the
cache starts.before
- the class of the interceptor to look forpublic InterceptorConfigurationBuilder interceptor(CommandInterceptor interceptor)
interceptor
- an instance of CommandInterceptor
public InterceptorConfigurationBuilder index(int i)
IllegalArgumentException
is thrown if the index is
less than 0 or greater than the maximum number of interceptors in the chain.i
- positional index in the interceptor chain to place the new interceptor.public InterceptorConfigurationBuilder position(InterceptorConfiguration.Position p)
InterceptorConfiguration.Position
enumeration, where to place the new interceptor.p
- position to place the new interceptorpublic InterceptorConfigurationBuilder withProperties(Properties properties)
public InterceptorConfigurationBuilder clearProperties()
public InterceptorConfigurationBuilder addProperty(String key, String value)
public InterceptorConfigurationBuilder removeProperty(String key)
public void validate()
Builder
validate
in interface Builder<InterceptorConfiguration>
public InterceptorConfiguration create()
Builder
create
in interface Builder<InterceptorConfiguration>
public InterceptorConfigurationBuilder read(InterceptorConfiguration template)
Builder
read
in interface Builder<InterceptorConfiguration>
template
- the configuration from which to "clone" this config if needed.public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public CompatibilityModeConfigurationBuilder compatibility()
compatibility
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.