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
Modifier and TypeInterfaceDescriptionstatic class
A builder to build aCoherenceConfiguration
instance.static class
A simple immutable implementation ofCoherenceConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns aCoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
.static CoherenceConfiguration
create()
Returns an immutable defaultCoherenceConfiguration
instance.default Optional
<com.tangosol.application.Context> Return the optional applicationContext
associated to thisCoherence
instance.Return an immutableIterable
ofinterceptors
that will be added to all sessions created by theCoherence
instance.getName()
Return the name to use for theCoherence
instance.Return an immutableMap
of namedSessionConfiguration
instances that will be used by theCoherence
instance to createSessions
.
-
Method Details
-
builder
Returns aCoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
.- Returns:
- a
CoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
-
create
Returns an immutable defaultCoherenceConfiguration
instance.This configuration will include the default system session, and any session configurations discovered by the
ServiceLoader
.- Returns:
- an immutable default
CoherenceConfiguration
instance - See Also:
-
getName
String getName()Return the name to use for theCoherence
instance.- Returns:
- the name to use for the
Coherence
instance
-
getSessionConfigurations
Map<String,SessionConfiguration> getSessionConfigurations()Return an immutableMap
of namedSessionConfiguration
instances that will be used by theCoherence
instance to createSessions
.- Returns:
- an immutable
Map
of namedSessionConfiguration
instances
-
getInterceptors
Iterable<EventInterceptor<?>> getInterceptors()Return an immutableIterable
ofinterceptors
that will be added to all sessions created by theCoherence
instance.- Returns:
- an immutable
Iterable
ofinterceptors
-
getApplicationContext
Return the optional applicationContext
associated to thisCoherence
instance.- Returns:
- the optional application
Context
associated to thisCoherence
instance
-