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 ConfigurationBuilder
builder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InterceptorConfigurationBuilder
addProperty(String key, String value)
Deprecated.InterceptorConfigurationBuilder
after(Class<? extends org.infinispan.interceptors.AsyncInterceptor> after)
Deprecated.Dictates that the custom interceptor appears immediately after the specified interceptor.org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
Deprecated.InterceptorConfigurationBuilder
before(Class<? extends org.infinispan.interceptors.AsyncInterceptor> before)
Deprecated.Dictates that the custom interceptor appears immediately before the specified interceptor.Configuration
build()
InterceptorConfigurationBuilder
clearProperties()
Deprecated.Clears the interceptor propertiesClusteringConfigurationBuilder
clustering()
InterceptorConfiguration
create()
Deprecated.Create the configuration beanCustomInterceptorsConfigurationBuilder
customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsEncodingConfigurationBuilder
encoding()
ExpirationConfigurationBuilder
expiration()
protected ConfigurationBuilder
getBuilder()
org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
Deprecated.InterceptorConfigurationBuilder
index(int i)
Deprecated.Specifies a position in the interceptor chain to place the new interceptor.IndexingConfigurationBuilder
indexing()
InterceptorConfigurationBuilder
interceptor(org.infinispan.interceptors.AsyncInterceptor interceptor)
Deprecated.An instance of the new custom interceptor to add to the configuration.InterceptorConfigurationBuilder
interceptorClass(Class<? extends org.infinispan.interceptors.AsyncInterceptor> interceptorClass)
Deprecated.Class of the new custom interceptor to add to the configuration.InvocationBatchingConfigurationBuilder
invocationBatching()
LockingConfigurationBuilder
locking()
MemoryConfigurationBuilder
memory()
PersistenceConfigurationBuilder
persistence()
InterceptorConfigurationBuilder
position(InterceptorConfiguration.Position p)
Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Position
enumeration, where to place the new interceptor.InterceptorConfigurationBuilder
read(InterceptorConfiguration template)
Deprecated.Reads the configuration from an already created configuration bean into this builder.InterceptorConfigurationBuilder
removeProperty(String key)
Deprecated.SecurityConfigurationBuilder
security()
boolean
simpleCache()
ConfigurationChildBuilder
simpleCache(boolean simpleCache)
SitesConfigurationBuilder
sites()
StatisticsConfigurationBuilder
statistics()
ConfigurationChildBuilder
template(boolean template)
String
toString()
Deprecated.TransactionConfigurationBuilder
transaction()
UnsafeConfigurationBuilder
unsafe()
void
validate()
Deprecated.Validate the data in this builder before building the configuration beanvoid
validate(GlobalConfiguration globalConfig)
Deprecated.InterceptorConfigurationBuilder
withProperties(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:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
Deprecated.- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of 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, aCacheConfigurationException
will 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, aCacheConfigurationException
will 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. 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
public InterceptorConfigurationBuilder position(InterceptorConfiguration.Position p)
Deprecated.Specifies a position, denoted by theInterceptorConfiguration.Position
enumeration, 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<InterceptorConfiguration>
-
validate
public void validate(GlobalConfiguration globalConfig)
Deprecated.- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
public InterceptorConfiguration create()
Deprecated.Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<InterceptorConfiguration>
- Returns:
-
read
public InterceptorConfigurationBuilder read(InterceptorConfiguration template)
Deprecated.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.
-
toString
public String toString()
Deprecated.
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clustering
in 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:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
public StatisticsConfigurationBuilder statistics()
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
build
in interfaceConfigurationChildBuilder
-
-