Package com.tangosol.net
Interface CoherenceConfiguration
-
- All Known Implementing Classes:
CoherenceConfiguration.SimpleConfig
public interface CoherenceConfigurationThe immutable configuration for aCoherenceinstance.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.11.05
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCoherenceConfiguration.BuilderA builder to build aCoherenceConfigurationinstance.static classCoherenceConfiguration.SimpleConfigA simple immutable implementation ofCoherenceConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CoherenceConfiguration.Builderbuilder()Returns aCoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration.static CoherenceConfigurationcreate()Returns an immutable defaultCoherenceConfigurationinstance.default Optional<Context>getApplicationContext()Iterable<EventInterceptor<?>>getInterceptors()Return an immutableIterableofinterceptorsthat will be added to all sessions created by theCoherenceinstance.StringgetName()Return the name to use for theCoherenceinstance.Map<String,SessionConfiguration>getSessionConfigurations()Return an immutableMapof namedSessionConfigurationinstances that will be used by theCoherenceinstance to createSessions.
-
-
-
Method Detail
-
builder
static CoherenceConfiguration.Builder builder()
Returns aCoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration.- Returns:
- a
CoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration
-
create
static CoherenceConfiguration create()
Returns an immutable defaultCoherenceConfigurationinstance.This configuration will include the default system session, and any session configurations discovered by the
ServiceLoader.- Returns:
- an immutable default
CoherenceConfigurationinstance - See Also:
SessionConfiguration.defaultSession(),CoherenceConfiguration.Builder.discoverSessions()
-
getName
String getName()
Return the name to use for theCoherenceinstance.- Returns:
- the name to use for the
Coherenceinstance
-
getSessionConfigurations
Map<String,SessionConfiguration> getSessionConfigurations()
Return an immutableMapof namedSessionConfigurationinstances that will be used by theCoherenceinstance to createSessions.- Returns:
- an immutable
Mapof namedSessionConfigurationinstances
-
getInterceptors
Iterable<EventInterceptor<?>> getInterceptors()
Return an immutableIterableofinterceptorsthat will be added to all sessions created by theCoherenceinstance.- Returns:
- an immutable
Iterableofinterceptors
-
-