Package com.tangosol.net
Class CoherenceConfiguration.SimpleConfig
- java.lang.Object
-
- com.tangosol.net.CoherenceConfiguration.SimpleConfig
-
- All Implemented Interfaces:
CoherenceConfiguration
- Enclosing interface:
- CoherenceConfiguration
public static class CoherenceConfiguration.SimpleConfig extends Object implements CoherenceConfiguration
A simple immutable implementation ofCoherenceConfiguration
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.net.CoherenceConfiguration
CoherenceConfiguration.Builder, CoherenceConfiguration.SimpleConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.tangosol.application.Context>
getApplicationContext()
Return the optional applicationContext
associated to thisCoherence
instance.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
-
getName
public String getName()
Description copied from interface:CoherenceConfiguration
Return the name to use for theCoherence
instance.- Specified by:
getName
in interfaceCoherenceConfiguration
- Returns:
- the name to use for the
Coherence
instance
-
getSessionConfigurations
public Map<String,SessionConfiguration> getSessionConfigurations()
Description copied from interface:CoherenceConfiguration
Return an immutableMap
of namedSessionConfiguration
instances that will be used by theCoherence
instance to createSessions
.- Specified by:
getSessionConfigurations
in interfaceCoherenceConfiguration
- Returns:
- an immutable
Map
of namedSessionConfiguration
instances
-
getInterceptors
public Iterable<EventInterceptor<?>> getInterceptors()
Description copied from interface:CoherenceConfiguration
Return an immutableIterable
ofinterceptors
that will be added to all sessions created by theCoherence
instance.- Specified by:
getInterceptors
in interfaceCoherenceConfiguration
- Returns:
- an immutable
Iterable
ofinterceptors
-
getApplicationContext
public Optional<com.tangosol.application.Context> getApplicationContext()
Description copied from interface:CoherenceConfiguration
Return the optional applicationContext
associated to thisCoherence
instance.- Specified by:
getApplicationContext
in interfaceCoherenceConfiguration
- Returns:
- the optional application
Context
associated to thisCoherence
instance
-
getDefaultSessionName
public String getDefaultSessionName()
Description copied from interface:CoherenceConfiguration
Return the name of the default session.- Specified by:
getDefaultSessionName
in interfaceCoherenceConfiguration
- Returns:
- the name of the default session
-
-