Package com.tangosol.net
Interface CoherenceConfiguration
- All Known Implementing Classes:
CoherenceConfiguration.SimpleConfig
public interface CoherenceConfiguration
The immutable configuration for a
Coherence instance.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.11.05
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA builder to build aCoherenceConfigurationinstance.static classA simple immutable implementation ofCoherenceConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns aCoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration.static CoherenceConfigurationcreate()Returns an immutable defaultCoherenceConfigurationinstance.default Optional<com.tangosol.application.Context> Return the optional applicationContextassociated to thisCoherenceinstance.Return an immutableIterableofinterceptorsthat will be added to all sessions created by theCoherenceinstance.getName()Return the name to use for theCoherenceinstance.Return an immutableMapof namedSessionConfigurationinstances that will be used by theCoherenceinstance to createSessions.
-
Method Details
-
builder
Returns aCoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration.- Returns:
- a
CoherenceConfiguration.Builderthat can configure and build instances ofCoherenceConfiguration
-
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:
-
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
-
getApplicationContext
Return the optional applicationContextassociated to thisCoherenceinstance.- Returns:
- the optional application
Contextassociated to thisCoherenceinstance
-