Class InterceptorConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
org.infinispan.configuration.cache.InterceptorConfigurationBuilder
- All Implemented Interfaces:
Builder<InterceptorConfiguration>
,ConfigurationChildBuilder
@Deprecated(forRemoval=true)
public class InterceptorConfigurationBuilder
extends AbstractCustomInterceptorsConfigurationChildBuilder
implements Builder<InterceptorConfiguration>
Deprecated, for removal: This API element is subject to removal in a future version.
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
-
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String key, String value) Deprecated, for removal: This API element is subject to removal in a future version.after
(Class<? extends AsyncInterceptor> after) Deprecated, for removal: This API element is subject to removal in a future version.Dictates that the custom interceptor appears immediately after the specified interceptor.Deprecated, for removal: This API element is subject to removal in a future version.before
(Class<? extends AsyncInterceptor> before) Deprecated, for removal: This API element is subject to removal in a future version.Dictates that the custom interceptor appears immediately before the specified interceptor.build()
Deprecated, for removal: This API element is subject to removal in a future version.Clears the interceptor propertiescreate()
Deprecated, for removal: This API element is subject to removal in a future version.Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()
protected ConfigurationBuilder
index
(int i) Deprecated, for removal: This API element is subject to removal in a future version.Specifies a position in the interceptor chain to place the new interceptor.indexing()
interceptor
(AsyncInterceptor interceptor) Deprecated, for removal: This API element is subject to removal in a future version.An instance of the new custom interceptor to add to the configuration.interceptorClass
(Class<? extends AsyncInterceptor> interceptorClass) Deprecated, for removal: This API element is subject to removal in a future version.Class of the new custom interceptor to add to the configuration.locking()
memory()
Deprecated, for removal: This API element is subject to removal in a future version.Specifies a position, denoted by theInterceptorConfiguration.Position
enumeration, where to place the new interceptor.query()
read
(InterceptorConfiguration template, Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.Reads the configuration from an already created configuration bean into this builder.removeProperty
(String key) Deprecated, for removal: This API element is subject to removal in a future version.security()
boolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) toString()
Deprecated, for removal: This API element is subject to removal in a future version.unsafe()
void
validate()
Deprecated, for removal: This API element is subject to removal in a future version.Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig) Deprecated, for removal: This API element is subject to removal in a future version.withProperties
(Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.Sets interceptor propertiesMethods inherited from class org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
getCustomInterceptorsBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
Field Details
-
builder
-
-
Method Details
-
attributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
attributes
in interfaceBuilder<InterceptorConfiguration>
-
after
Deprecated, for removal: This API element is subject to removal in a future version.Dictates that the custom interceptor appears immediately after the specified interceptor. If the specified interceptor is not found in the interceptor chain, aCacheConfigurationException
will be thrown when the cache starts.- Parameters:
after
- the class of the interceptor to look for
-
before
Deprecated, for removal: This API element is subject to removal in a future version.Dictates that the custom interceptor appears immediately before the specified interceptor. If the specified interceptor is not found in the interceptor chain, aCacheConfigurationException
will 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, for removal: This API element is subject to removal in a future version.Class of the new custom interceptor to add to the configuration.- Parameters:
interceptorClass
- an instance ofAsyncInterceptor
-
interceptor
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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. AnIllegalArgumentException
is 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, for removal: This API element is subject to removal in a future version.Specifies a position, denoted by theInterceptorConfiguration.Position
enumeration, where to place the new interceptor.- Parameters:
p
- position to place the new interceptor
-
withProperties
Deprecated, for removal: This API element is subject to removal in a future version.Sets interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
clearProperties
Deprecated, for removal: This API element is subject to removal in a future version.Clears the interceptor properties- Returns:
- this InterceptorConfigurationBuilder
-
addProperty
Deprecated, for removal: This API element is subject to removal in a future version. -
removeProperty
Deprecated, for removal: This API element is subject to removal in a future version. -
validate
public void validate()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<InterceptorConfiguration>
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<InterceptorConfiguration>
- Returns:
-
read
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<InterceptorConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-