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, for removal: This API element is subject to removal in a future version.addAdvancedExternalizer
(AdvancedExternalizer<T> advancedExternalizer) Deprecated, for removal: This API element is subject to removal in a future version.since 10.0,AdvancedExternalizer
's will be removed in a future release.addAdvancedExternalizer
(AdvancedExternalizer<T>... advancedExternalizers) Deprecated, for removal: This API element is subject to removal in a future version.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 aGlobalConfiguration
object 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 GlobalConfigurationBuilder
Global 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 metrics configuration.modules()
Global modules configurationConfiguration for the non blocking thread poolConfiguration for the persistence thread poolread
(SerializationConfiguration template, Combine combine) 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.void
validate()
Validate the data in this builder before building the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.since 12.0.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<SerializationConfiguration>
-
marshaller
Set the marshaller instance that will marshall and unmarshall cache entries.- Parameters:
marshaller
-
-
getMarshaller
-
addAdvancedExternalizer
@Deprecated(forRemoval=true) public <T> SerializationConfigurationBuilder addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer) Deprecated, for removal: This API element is subject to removal in a future version.since 10.0,AdvancedExternalizer
's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializer
viaaddContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types viamarshaller(Marshaller)
.Helper method that allows for quick registration of anAdvancedExternalizer
implementation 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(forRemoval=true) public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T> advancedExternalizer) Deprecated, for removal: This API element is subject to removal in a future version.since 10.0,AdvancedExternalizer
's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializer
viaaddContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types viamarshaller(Marshaller)
.Helper method that allows for quick registration of anAdvancedExternalizer
implementation 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(forRemoval=true) public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers) Deprecated, for removal: This API element is subject to removal in a future version.since 10.0,AdvancedExternalizer
's will be removed in a future release. Please utilise ProtoStream annotations on Java objects instead by configuring aSerializationContextInitializer
viaaddContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types viamarshaller(Marshaller)
.Helper method that allows for quick registration ofAdvancedExternalizer
implementations.- 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, for removal: This API element is subject to removal in a future version.since 12.0. UseallowList()
instead. To be removed in 14.0. -
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<SerializationConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<SerializationConfiguration>
- Returns:
-
read
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<SerializationConfiguration>
- 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
-
getGlobalConfig
-
transport
Description copied from interface:GlobalConfigurationChildBuilder
Transport-related (i.e. clustering) configuration- Specified by:
transport
in interfaceGlobalConfigurationChildBuilder
-
metrics
Description copied from interface:GlobalConfigurationChildBuilder
Global metrics configuration.- Specified by:
metrics
in interfaceGlobalConfigurationChildBuilder
-
jmx
Description copied from interface:GlobalConfigurationChildBuilder
Global JMX configuration.- Specified by:
jmx
in interfaceGlobalConfigurationChildBuilder
-
globalState
Description copied from interface:GlobalConfigurationChildBuilder
Global state configuration- Specified by:
globalState
in interfaceGlobalConfigurationChildBuilder
-
serialization
Description copied from interface:GlobalConfigurationChildBuilder
Global serialization (i.e. marshalling) configuration- Specified by:
serialization
in interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the listener thread pool- Specified by:
listenerThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the asynchronous operations thread pool- Specified by:
asyncThreadPool
in interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the expiration thread pool- Specified by:
expirationThreadPool
in interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the persistence thread pool- Specified by:
persistenceThreadPool
in interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the state-transfer thread pool- Specified by:
stateTransferThreadPool
in interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the blocking thread pool- Specified by:
blockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the non blocking thread pool- Specified by:
nonBlockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
security
Description copied from interface:GlobalConfigurationChildBuilder
Security-related configuration- Specified by:
security
in interfaceGlobalConfigurationChildBuilder
-
shutdown
Description copied from interface:GlobalConfigurationChildBuilder
Shutdown configuration- Specified by:
shutdown
in interfaceGlobalConfigurationChildBuilder
-
site
Description copied from interface:GlobalConfigurationChildBuilder
Cross-site replication configuration- Specified by:
site
in interfaceGlobalConfigurationChildBuilder
-
modules
Description copied from interface:GlobalConfigurationChildBuilder
Global modules configuration- Specified by:
modules
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
Description copied from interface:GlobalConfigurationChildBuilder
Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache()
. Not- Specified by:
defaultCacheName
in interfaceGlobalConfigurationChildBuilder
-
build
Description copied from interface:GlobalConfigurationChildBuilder
Builds aGlobalConfiguration
object using the settings applied to this builder- Specified by:
build
in interfaceGlobalConfigurationChildBuilder
-
AdvancedExternalizer
's will be removed in a future release.