Class SerializationConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.SerializationConfigurationBuilder
- All Implemented Interfaces:
Builder<SerializationConfiguration>,GlobalConfigurationChildBuilder
public class SerializationConfigurationBuilder
extends Object
implements Builder<SerializationConfiguration>
Configures serialization and marshalling settings.
-
Method Summary
Modifier and TypeMethodDescriptionaddAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer) Deprecated.addAdvancedExternalizer(AdvancedExternalizer<T> advancedExternalizer) Deprecated.since 10.0,AdvancedExternalizer's will be removed in a future release.addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers) Deprecated.since 10.0,AdvancedExternalizer's will be removed in a future release.addContextInitializer(org.infinispan.protostream.SerializationContextInitializer sci) addContextInitializers(List<org.infinispan.protostream.SerializationContextInitializer> scis) addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... scis) Configuration for the asynchronous operations thread poolConfiguration for the blocking thread poolbuild()Builds aGlobalConfigurationobject using the settings applied to this buildercreate()Create the configuration beandefaultCacheName(String defaultCacheName) Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache().Configuration for the expiration thread poolprotected GlobalConfigurationBuilderGlobal state configurationjmx()Global JMX configuration.Configuration for the listener thread poolmarshaller(Marshaller marshaller) Set the marshaller instance that will marshall and unmarshall cache entries.metrics()Global microprofile metrics configuration.modules()Global modules configurationConfiguration for the non blocking thread poolConfiguration for the persistence thread poolread(SerializationConfiguration template) Reads the configuration from an already created configuration bean into this builder.security()Security-related configurationGlobal serialization (i.e.shutdown()Shutdown configurationsite()Cross-site replication configurationConfiguration for the state-transfer thread pooltoString()Transport-related (i.e.voidvalidate()Validate the data in this builder before building the configuration beanDeprecated.since 12.0.Methods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
Method Details
-
marshaller
Set the marshaller instance that will marshall and unmarshall cache entries.- Parameters:
marshaller-
-
getMarshaller
-
addAdvancedExternalizer
@Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer) Deprecated.since 10.0,AdvancedExternalizer's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializerviaaddContextInitializer(SerializationContextInitializer), or specifying a custom marshaller for user types viamarshaller(Marshaller).Helper method that allows for quick registration of anAdvancedExternalizerimplementation alongside its corresponding identifier. Remember that the identifier needs to a be positive number, including 0, and cannot clash with other identifiers in the system.- Parameters:
id-advancedExternalizer-
-
addAdvancedExternalizer
@Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T> advancedExternalizer) Deprecated.since 10.0,AdvancedExternalizer's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializerviaaddContextInitializer(SerializationContextInitializer), or specifying a custom marshaller for user types viamarshaller(Marshaller).Helper method that allows for quick registration of anAdvancedExternalizerimplementation alongside its corresponding identifier. Remember that the identifier needs to a be positive number, including 0, and cannot clash with other identifiers in the system.- Parameters:
advancedExternalizer-
-
addAdvancedExternalizer
@Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers) Deprecated.since 10.0,AdvancedExternalizer's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializerviaaddContextInitializer(SerializationContextInitializer), or specifying a custom marshaller for user types viamarshaller(Marshaller).Helper method that allows for quick registration ofAdvancedExternalizerimplementations.- Parameters:
advancedExternalizers-
-
addContextInitializer
public SerializationConfigurationBuilder addContextInitializer(org.infinispan.protostream.SerializationContextInitializer sci) -
addContextInitializers
public SerializationConfigurationBuilder addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... scis) -
addContextInitializers
public SerializationConfigurationBuilder addContextInitializers(List<org.infinispan.protostream.SerializationContextInitializer> scis) -
allowList
-
whiteList
Deprecated.since 12.0. UseallowList()instead. To be removed in 14.0. -
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<SerializationConfiguration>
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<SerializationConfiguration>- Returns:
-
read
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<SerializationConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
toString
-
getGlobalConfig
-
transport
Description copied from interface:GlobalConfigurationChildBuilderTransport-related (i.e. clustering) configuration- Specified by:
transportin interfaceGlobalConfigurationChildBuilder
-
metrics
Description copied from interface:GlobalConfigurationChildBuilderGlobal microprofile metrics configuration.- Specified by:
metricsin interfaceGlobalConfigurationChildBuilder
-
jmx
Description copied from interface:GlobalConfigurationChildBuilderGlobal JMX configuration.- Specified by:
jmxin interfaceGlobalConfigurationChildBuilder
-
globalState
Description copied from interface:GlobalConfigurationChildBuilderGlobal state configuration- Specified by:
globalStatein interfaceGlobalConfigurationChildBuilder
-
serialization
Description copied from interface:GlobalConfigurationChildBuilderGlobal serialization (i.e. marshalling) configuration- Specified by:
serializationin interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the listener thread pool- Specified by:
listenerThreadPoolin interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the asynchronous operations thread pool- Specified by:
asyncThreadPoolin interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the expiration thread pool- Specified by:
expirationThreadPoolin interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the persistence thread pool- Specified by:
persistenceThreadPoolin interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the state-transfer thread pool- Specified by:
stateTransferThreadPoolin interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the blocking thread pool- Specified by:
blockingThreadPoolin interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the non blocking thread pool- Specified by:
nonBlockingThreadPoolin interfaceGlobalConfigurationChildBuilder
-
security
Description copied from interface:GlobalConfigurationChildBuilderSecurity-related configuration- Specified by:
securityin interfaceGlobalConfigurationChildBuilder
-
shutdown
Description copied from interface:GlobalConfigurationChildBuilderShutdown configuration- Specified by:
shutdownin interfaceGlobalConfigurationChildBuilder
-
site
Description copied from interface:GlobalConfigurationChildBuilderCross-site replication configuration- Specified by:
sitein interfaceGlobalConfigurationChildBuilder
-
modules
Description copied from interface:GlobalConfigurationChildBuilderGlobal modules configuration- Specified by:
modulesin interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
Description copied from interface:GlobalConfigurationChildBuilderSets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache(). Not- Specified by:
defaultCacheNamein interfaceGlobalConfigurationChildBuilder
-
build
Description copied from interface:GlobalConfigurationChildBuilderBuilds aGlobalConfigurationobject using the settings applied to this builder- Specified by:
buildin interfaceGlobalConfigurationChildBuilder
-
AdvancedExternalizer's will be removed in a future release.