Class InterceptorConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
org.infinispan.configuration.cache.InterceptorConfigurationBuilder
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<InterceptorConfiguration>,ConfigurationChildBuilder
@Deprecated
public class InterceptorConfigurationBuilder
extends AbstractCustomInterceptorsConfigurationChildBuilder
implements org.infinispan.commons.configuration.Builder<InterceptorConfiguration>
Deprecated.
Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors
This builder defines details of a specific custom interceptor.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String key, String value) Deprecated.after(Class<? extends AsyncInterceptor> after) Deprecated.Dictates that the custom interceptor appears immediately after the specified interceptor.org.infinispan.commons.configuration.attributes.AttributeSetDeprecated.before(Class<? extends AsyncInterceptor> before) Deprecated.Dictates that the custom interceptor appears immediately before the specified interceptor.build()Deprecated.Clears the interceptor propertiescreate()Deprecated.Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()protected ConfigurationBuilderindex(int i) Deprecated.Specifies a position in the interceptor chain to place the new interceptor.indexing()interceptor(AsyncInterceptor interceptor) Deprecated.An instance of the new custom interceptor to add to the configuration.interceptorClass(Class<? extends AsyncInterceptor> interceptorClass) Deprecated.Class of the new custom interceptor to add to the configuration.locking()memory()Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Positionenumeration, where to place the new interceptor.query()read(InterceptorConfiguration template) Deprecated.removeProperty(String key) Deprecated.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) toString()Deprecated.unsafe()voidvalidate()Deprecated.voidvalidate(GlobalConfiguration globalConfig) Deprecated.withProperties(Properties properties) Deprecated.Sets interceptor propertiesMethods inherited from class org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
getCustomInterceptorsBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
Field Details
-
builder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()Deprecated.- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<InterceptorConfiguration>
-
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
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 AsyncInterceptor> interceptorClass) Deprecated.Class of the new custom interceptor to add to the configuration.- Parameters:
interceptorClass- an instance ofAsyncInterceptor
-
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
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
Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Positionenumeration, where to place the new interceptor.- Parameters:
p- position to place the new interceptor
-
withProperties
Deprecated.Sets interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
clearProperties
Deprecated.Clears the interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
addProperty
Deprecated. -
removeProperty
Deprecated. -
validate
public void validate()Deprecated.- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<InterceptorConfiguration>
-
validate
Deprecated.- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Deprecated.- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<InterceptorConfiguration>
-
read
Deprecated.- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<InterceptorConfiguration>
-
toString
Deprecated. -
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
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
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-