Package com.tangosol.net
Interface CoherenceConfiguration
-
- All Known Implementing Classes:
CoherenceConfiguration.SimpleConfig
public interface CoherenceConfiguration
The immutable configuration for aCoherence
instance.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.11.05
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CoherenceConfiguration.Builder
A builder to build aCoherenceConfiguration
instance.static class
CoherenceConfiguration.SimpleConfig
A simple immutable implementation ofCoherenceConfiguration
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CoherenceConfiguration.Builder
builder()
Returns aCoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
.static CoherenceConfiguration
create()
Returns an immutable defaultCoherenceConfiguration
instance.default Optional<com.tangosol.application.Context>
getApplicationContext()
Return the optional applicationContext
associated to thisCoherence
instance.default String
getDefaultSessionName()
Return the name of the default session.Iterable<EventInterceptor<?>>
getInterceptors()
Return an immutableIterable
ofinterceptors
that will be added to all sessions created by theCoherence
instance.String
getName()
Return the name to use for theCoherence
instance.Map<String,SessionConfiguration>
getSessionConfigurations()
Return an immutableMap
of namedSessionConfiguration
instances that will be used by theCoherence
instance to createSessions
.
-
-
-
Method Detail
-
builder
static CoherenceConfiguration.Builder builder()
Returns aCoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
.- Returns:
- a
CoherenceConfiguration.Builder
that can configure and build instances ofCoherenceConfiguration
-
create
static CoherenceConfiguration 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:
SessionConfiguration.defaultSession()
,CoherenceConfiguration.Builder.discoverSessions()
-
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
default Optional<com.tangosol.application.Context> getApplicationContext()
Return the optional applicationContext
associated to thisCoherence
instance.- Returns:
- the optional application
Context
associated to thisCoherence
instance
-
getDefaultSessionName
default String getDefaultSessionName()
Return the name of the default session.- Returns:
- the name of the default session
-
-