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 SummaryFields Modifier and Type Field Description protected ConfigurationBuilderbuilder
 - 
Method SummaryAll 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.AbstractCustomInterceptorsConfigurationChildBuildergetCustomInterceptorsBuilder
 - 
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationBuilderInfogetBuilderInfo, getChildrenInfo, getNewBuilderInfo
 - 
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilderjmxStatistics
 
- 
 
- 
- 
- 
Field Detail- 
builderprotected final ConfigurationBuilder builder 
 
- 
 - 
Method Detail- 
attributespublic org.infinispan.commons.configuration.attributes.AttributeSet attributes() Deprecated.- Specified by:
- attributesin interface- BaseConfigurationInfo
- Returns:
- the AttributeSetdeclared by the configuration.
 
 - 
getElementDefinitionpublic org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition() Deprecated.- Specified by:
- getElementDefinitionin interface- BaseConfigurationInfo
- Returns:
- the ElementDefinitionof the configuration.
 
 - 
afterpublic 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
 
 - 
beforepublic 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
 
 - 
interceptorClasspublic 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 of- AsyncInterceptor
 
 - 
interceptorpublic 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 of- AsyncInterceptor
 
 - 
indexpublic 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.
 
 - 
positionpublic 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
 
 - 
withPropertiespublic InterceptorConfigurationBuilder withProperties(Properties properties) Deprecated.Sets interceptor properties- Returns:
- this InterceptorConfigurationBuilder
 
 - 
clearPropertiespublic InterceptorConfigurationBuilder clearProperties() Deprecated.Clears the interceptor properties- Returns:
- this InterceptorConfigurationBuilder
 
 - 
addPropertypublic InterceptorConfigurationBuilder addProperty(String key, String value) Deprecated.
 - 
removePropertypublic InterceptorConfigurationBuilder removeProperty(String key) Deprecated.
 - 
validatepublic void validate() Deprecated.Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
- validatein interface- Builder<InterceptorConfiguration>
 
 - 
validatepublic void validate(GlobalConfiguration globalConfig) Deprecated.- Specified by:
- validatein interface- ConfigurationChildBuilder
 
 - 
createpublic InterceptorConfiguration create() Deprecated.Description copied from interface:BuilderCreate the configuration bean- Specified by:
- createin interface- Builder<InterceptorConfiguration>
- Returns:
 
 - 
readpublic 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 interface- Builder<InterceptorConfiguration>
- Parameters:
- template- the configuration from which to "clone" this config if needed.
 
 - 
toStringpublic String toString() Deprecated.
 - 
templatepublic ConfigurationChildBuilder template(boolean template) - Specified by:
- templatein interface- ConfigurationChildBuilder
 
 - 
simpleCachepublic ConfigurationChildBuilder simpleCache(boolean simpleCache) - Specified by:
- simpleCachein interface- ConfigurationChildBuilder
 
 - 
simpleCachepublic boolean simpleCache() - Specified by:
- simpleCachein interface- ConfigurationChildBuilder
 
 - 
clusteringpublic ClusteringConfigurationBuilder clustering() - Specified by:
- clusteringin interface- ConfigurationChildBuilder
 
 - 
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 interface- ConfigurationChildBuilder
 
 - 
encodingpublic EncodingConfigurationBuilder encoding() - Specified by:
- encodingin interface- ConfigurationChildBuilder
 
 - 
expirationpublic ExpirationConfigurationBuilder expiration() - Specified by:
- expirationin interface- ConfigurationChildBuilder
 
 - 
indexingpublic IndexingConfigurationBuilder indexing() - Specified by:
- indexingin interface- ConfigurationChildBuilder
 
 - 
invocationBatchingpublic InvocationBatchingConfigurationBuilder invocationBatching() - Specified by:
- invocationBatchingin interface- ConfigurationChildBuilder
 
 - 
statisticspublic StatisticsConfigurationBuilder statistics() - Specified by:
- statisticsin interface- ConfigurationChildBuilder
 
 - 
persistencepublic PersistenceConfigurationBuilder persistence() - Specified by:
- persistencein interface- ConfigurationChildBuilder
 
 - 
lockingpublic LockingConfigurationBuilder locking() - Specified by:
- lockingin interface- ConfigurationChildBuilder
 
 - 
securitypublic SecurityConfigurationBuilder security() - Specified by:
- securityin interface- ConfigurationChildBuilder
 
 - 
transactionpublic TransactionConfigurationBuilder transaction() - Specified by:
- transactionin interface- ConfigurationChildBuilder
 
 - 
unsafepublic UnsafeConfigurationBuilder unsafe() - Specified by:
- unsafein interface- ConfigurationChildBuilder
 
 - 
sitespublic SitesConfigurationBuilder sites() - Specified by:
- sitesin interface- ConfigurationChildBuilder
 
 - 
memorypublic MemoryConfigurationBuilder memory() - Specified by:
- memoryin interface- ConfigurationChildBuilder
 
 - 
getBuilderprotected ConfigurationBuilder getBuilder() 
 - 
buildpublic Configuration build() - Specified by:
- buildin interface- ConfigurationChildBuilder
 
 
- 
 
-