public class SerializationConfigurationBuilder extends Object implements Builder<SerializationConfiguration>
Modifier and Type | Method and Description |
---|---|
<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 a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer) , or specifying a custom marshaller for user types
via marshaller(Marshaller) . |
<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 a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer) , or specifying a custom marshaller for user types
via marshaller(Marshaller) . |
<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 a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer) , or specifying a custom marshaller for user types
via marshaller(Marshaller) . |
SerializationConfigurationBuilder |
addContextInitializer(org.infinispan.protostream.SerializationContextInitializer sci) |
SerializationConfigurationBuilder |
addContextInitializers(List<org.infinispan.protostream.SerializationContextInitializer> scis) |
SerializationConfigurationBuilder |
addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... scis) |
ThreadPoolConfigurationBuilder |
asyncThreadPool()
Configuration for the asynchronous operations thread pool
|
ThreadPoolConfigurationBuilder |
blockingThreadPool()
Configuration for the blocking thread pool
|
GlobalConfiguration |
build()
Builds a
GlobalConfiguration object using the settings applied to this builder |
SerializationConfiguration |
create()
Create the configuration bean
|
GlobalConfigurationBuilder |
defaultCacheName(String defaultCacheName)
Sets the name of the cache that acts as the default cache and is returned by
EmbeddedCacheManager.getCache() . |
ThreadPoolConfigurationBuilder |
expirationThreadPool()
Configuration for the expiration thread pool
|
protected GlobalConfigurationBuilder |
getGlobalConfig() |
Marshaller |
getMarshaller() |
GlobalStateConfigurationBuilder |
globalState()
Global state configuration
|
GlobalJmxConfigurationBuilder |
jmx()
Global JMX configuration.
|
ThreadPoolConfigurationBuilder |
listenerThreadPool()
Configuration for the listener thread pool
|
SerializationConfigurationBuilder |
marshaller(Marshaller marshaller)
Set the marshaller instance that will marshall and unmarshall cache entries.
|
GlobalMetricsConfigurationBuilder |
metrics()
Global microprofile metrics configuration.
|
List<Builder<?>> |
modules()
Global modules configuration
|
ThreadPoolConfigurationBuilder |
nonBlockingThreadPool()
Configuration for the non blocking thread pool
|
ThreadPoolConfigurationBuilder |
persistenceThreadPool()
Configuration for the persistence thread pool
|
SerializationConfigurationBuilder |
read(SerializationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
GlobalSecurityConfigurationBuilder |
security()
Security-related configuration
|
SerializationConfigurationBuilder |
serialization()
Global serialization (i.e.
|
ShutdownConfigurationBuilder |
shutdown()
Shutdown configuration
|
SiteConfigurationBuilder |
site()
Cross-site replication configuration
|
ThreadPoolConfigurationBuilder |
stateTransferThreadPool()
Configuration for the state-transfer thread pool
|
String |
toString() |
TransportConfigurationBuilder |
transport()
Transport-related (i.e.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
WhiteListConfigurationBuilder |
whiteList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
globalJmxStatistics
public SerializationConfigurationBuilder marshaller(Marshaller marshaller)
marshaller
- public Marshaller getMarshaller()
@Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer)
AdvancedExternalizer
's will be removed in a future release. Please utilise
ProtoStream annotations on Java objects instead by configuring a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types
via marshaller(Marshaller)
.AdvancedExternalizer
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.id
- advancedExternalizer
- @Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T> advancedExternalizer)
AdvancedExternalizer
's will be removed in a future release. Please utilise
ProtoStream annotations on Java objects instead by configuring a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types
via marshaller(Marshaller)
.AdvancedExternalizer
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.advancedExternalizer
- @Deprecated public <T> SerializationConfigurationBuilder addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
AdvancedExternalizer
's will be removed in a future release. Please utilise
ProtoStream annotations on Java objects instead by configuring a SerializationContextInitializer
via addContextInitializer(SerializationContextInitializer)
, or specifying a custom marshaller for user types
via marshaller(Marshaller)
.AdvancedExternalizer
implementations.advancedExternalizers
- public SerializationConfigurationBuilder addContextInitializer(org.infinispan.protostream.SerializationContextInitializer sci)
public SerializationConfigurationBuilder addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... scis)
public SerializationConfigurationBuilder addContextInitializers(List<org.infinispan.protostream.SerializationContextInitializer> scis)
public WhiteListConfigurationBuilder whiteList()
public void validate()
Builder
validate
in interface Builder<SerializationConfiguration>
public SerializationConfiguration create()
Builder
create
in interface Builder<SerializationConfiguration>
public SerializationConfigurationBuilder read(SerializationConfiguration template)
Builder
read
in interface Builder<SerializationConfiguration>
template
- the configuration from which to "clone" this config if needed.protected GlobalConfigurationBuilder getGlobalConfig()
public TransportConfigurationBuilder transport()
GlobalConfigurationChildBuilder
transport
in interface GlobalConfigurationChildBuilder
public GlobalMetricsConfigurationBuilder metrics()
GlobalConfigurationChildBuilder
metrics
in interface GlobalConfigurationChildBuilder
public GlobalJmxConfigurationBuilder jmx()
GlobalConfigurationChildBuilder
jmx
in interface GlobalConfigurationChildBuilder
public GlobalStateConfigurationBuilder globalState()
GlobalConfigurationChildBuilder
globalState
in interface GlobalConfigurationChildBuilder
public SerializationConfigurationBuilder serialization()
GlobalConfigurationChildBuilder
serialization
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder listenerThreadPool()
GlobalConfigurationChildBuilder
listenerThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder asyncThreadPool()
GlobalConfigurationChildBuilder
asyncThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder expirationThreadPool()
GlobalConfigurationChildBuilder
expirationThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder persistenceThreadPool()
GlobalConfigurationChildBuilder
persistenceThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
GlobalConfigurationChildBuilder
stateTransferThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder blockingThreadPool()
GlobalConfigurationChildBuilder
blockingThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder nonBlockingThreadPool()
GlobalConfigurationChildBuilder
nonBlockingThreadPool
in interface GlobalConfigurationChildBuilder
public GlobalSecurityConfigurationBuilder security()
GlobalConfigurationChildBuilder
security
in interface GlobalConfigurationChildBuilder
public ShutdownConfigurationBuilder shutdown()
GlobalConfigurationChildBuilder
shutdown
in interface GlobalConfigurationChildBuilder
public SiteConfigurationBuilder site()
GlobalConfigurationChildBuilder
site
in interface GlobalConfigurationChildBuilder
public List<Builder<?>> modules()
GlobalConfigurationChildBuilder
modules
in interface GlobalConfigurationChildBuilder
public GlobalConfigurationBuilder defaultCacheName(String defaultCacheName)
GlobalConfigurationChildBuilder
EmbeddedCacheManager.getCache()
. NotdefaultCacheName
in interface GlobalConfigurationChildBuilder
public GlobalConfiguration build()
GlobalConfigurationChildBuilder
GlobalConfiguration
object using the settings applied to this builderbuild
in interface GlobalConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.