Class InterceptorConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
-
- org.infinispan.configuration.cache.InterceptorConfigurationBuilder
-
- All Implemented Interfaces:
BaseConfigurationInfo,Builder<InterceptorConfiguration>,ConfigurationBuilderInfo,ConfigurationChildBuilder
@Deprecated public class InterceptorConfigurationBuilder extends AbstractCustomInterceptorsConfigurationChildBuilder implements Builder<InterceptorConfiguration>, ConfigurationBuilderInfo
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsThis builder defines details of a specific custom interceptor.
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationBuilderbuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InterceptorConfigurationBuilderaddProperty(String key, String value)Deprecated.InterceptorConfigurationBuilderafter(Class<? extends org.infinispan.interceptors.AsyncInterceptor> after)Deprecated.Dictates that the custom interceptor appears immediately after the specified interceptor.org.infinispan.commons.configuration.attributes.AttributeSetattributes()Deprecated.InterceptorConfigurationBuilderbefore(Class<? extends org.infinispan.interceptors.AsyncInterceptor> before)Deprecated.Dictates that the custom interceptor appears immediately before the specified interceptor.Configurationbuild()InterceptorConfigurationBuilderclearProperties()Deprecated.Clears the interceptor propertiesClusteringConfigurationBuilderclustering()InterceptorConfigurationcreate()Deprecated.Create the configuration beanCustomInterceptorsConfigurationBuildercustomInterceptors()Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsEncodingConfigurationBuilderencoding()ExpirationConfigurationBuilderexpiration()protected ConfigurationBuildergetBuilder()org.infinispan.commons.configuration.elements.ElementDefinitiongetElementDefinition()Deprecated.InterceptorConfigurationBuilderindex(int i)Deprecated.Specifies a position in the interceptor chain to place the new interceptor.IndexingConfigurationBuilderindexing()InterceptorConfigurationBuilderinterceptor(org.infinispan.interceptors.AsyncInterceptor interceptor)Deprecated.An instance of the new custom interceptor to add to the configuration.InterceptorConfigurationBuilderinterceptorClass(Class<? extends org.infinispan.interceptors.AsyncInterceptor> interceptorClass)Deprecated.Class of the new custom interceptor to add to the configuration.InvocationBatchingConfigurationBuilderinvocationBatching()LockingConfigurationBuilderlocking()MemoryConfigurationBuildermemory()PersistenceConfigurationBuilderpersistence()InterceptorConfigurationBuilderposition(InterceptorConfiguration.Position p)Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Positionenumeration, where to place the new interceptor.InterceptorConfigurationBuilderread(InterceptorConfiguration template)Deprecated.Reads the configuration from an already created configuration bean into this builder.InterceptorConfigurationBuilderremoveProperty(String key)Deprecated.SecurityConfigurationBuildersecurity()booleansimpleCache()ConfigurationChildBuildersimpleCache(boolean simpleCache)SitesConfigurationBuildersites()StatisticsConfigurationBuilderstatistics()ConfigurationChildBuildertemplate(boolean template)StringtoString()Deprecated.TransactionConfigurationBuildertransaction()UnsafeConfigurationBuilderunsafe()voidvalidate()Deprecated.Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig)Deprecated.InterceptorConfigurationBuilderwithProperties(Properties properties)Deprecated.Sets interceptor properties-
Methods inherited from class org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
getCustomInterceptorsBuilder
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationBuilderInfo
getBuilderInfo, getChildrenInfo, getNewBuilderInfo
-
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
-
-
-
Field Detail
-
builder
protected final ConfigurationBuilder builder
-
-
Method Detail
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
Deprecated.- Specified by:
attributesin interfaceBaseConfigurationInfo- Returns:
- the
AttributeSetdeclared by the configuration.
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
Deprecated.- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
after
public InterceptorConfigurationBuilder after(Class<? extends org.infinispan.interceptors.AsyncInterceptor> after)
Deprecated.Dictates that the custom interceptor appears immediately after the specified interceptor. If the specified interceptor is not found in the interceptor chain, aCacheConfigurationExceptionwill be thrown when the cache starts.- Parameters:
after- the class of the interceptor to look for
-
before
public InterceptorConfigurationBuilder before(Class<? extends org.infinispan.interceptors.AsyncInterceptor> before)
Deprecated.Dictates that the custom interceptor appears immediately before the specified interceptor. If the specified interceptor is not found in the interceptor chain, aCacheConfigurationExceptionwill be thrown when the cache starts.- Parameters:
before- the class of the interceptor to look for
-
interceptorClass
public InterceptorConfigurationBuilder interceptorClass(Class<? extends org.infinispan.interceptors.AsyncInterceptor> interceptorClass)
Deprecated.Class of the new custom interceptor to add to the configuration.- Parameters:
interceptorClass- an instance ofAsyncInterceptor
-
interceptor
public InterceptorConfigurationBuilder interceptor(org.infinispan.interceptors.AsyncInterceptor interceptor)
Deprecated.An instance of the new custom interceptor to add to the configuration. Warning: if you use this configuration for multiple caches, the interceptor instance will be shared, which will corrupt interceptor stack. UseinterceptorClass(java.lang.Class<? extends org.infinispan.interceptors.AsyncInterceptor>)instead.- Parameters:
interceptor- an instance ofAsyncInterceptor
-
index
public InterceptorConfigurationBuilder index(int i)
Deprecated.Specifies a position in the interceptor chain to place the new interceptor. The index starts at 0 and goes up to the number of interceptors in a given configuration. AnIllegalArgumentExceptionis thrown if the index is less than 0 or greater than the maximum number of interceptors in the chain.- Parameters:
i- positional index in the interceptor chain to place the new interceptor.
-
position
public InterceptorConfigurationBuilder position(InterceptorConfiguration.Position p)
Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Positionenumeration, where to place the new interceptor.- Parameters:
p- position to place the new interceptor
-
withProperties
public InterceptorConfigurationBuilder withProperties(Properties properties)
Deprecated.Sets interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
clearProperties
public InterceptorConfigurationBuilder clearProperties()
Deprecated.Clears the interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
addProperty
public InterceptorConfigurationBuilder addProperty(String key, String value)
Deprecated.
-
removeProperty
public InterceptorConfigurationBuilder removeProperty(String key)
Deprecated.
-
validate
public void validate()
Deprecated.Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<InterceptorConfiguration>
-
validate
public void validate(GlobalConfiguration globalConfig)
Deprecated.- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
public InterceptorConfiguration create()
Deprecated.Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<InterceptorConfiguration>- Returns:
-
read
public InterceptorConfigurationBuilder read(InterceptorConfiguration template)
Deprecated.Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<InterceptorConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
toString
public String toString()
Deprecated.
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
public StatisticsConfigurationBuilder statistics()
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
buildin interfaceConfigurationChildBuilder
-
-