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 applicationContextassociated to thisCoherenceinstance.StringgetDefaultSessionName()Return the name of the default session.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
-
getName
public String getName()
Description copied from interface:CoherenceConfigurationReturn the name to use for theCoherenceinstance.- Specified by:
getNamein interfaceCoherenceConfiguration- Returns:
- the name to use for the
Coherenceinstance
-
getSessionConfigurations
public Map<String,SessionConfiguration> getSessionConfigurations()
Description copied from interface:CoherenceConfigurationReturn an immutableMapof namedSessionConfigurationinstances that will be used by theCoherenceinstance to createSessions.- Specified by:
getSessionConfigurationsin interfaceCoherenceConfiguration- Returns:
- an immutable
Mapof namedSessionConfigurationinstances
-
getInterceptors
public Iterable<EventInterceptor<?>> getInterceptors()
Description copied from interface:CoherenceConfigurationReturn an immutableIterableofinterceptorsthat will be added to all sessions created by theCoherenceinstance.- Specified by:
getInterceptorsin interfaceCoherenceConfiguration- Returns:
- an immutable
Iterableofinterceptors
-
getApplicationContext
public Optional<com.tangosol.application.Context> getApplicationContext()
Description copied from interface:CoherenceConfigurationReturn the optional applicationContextassociated to thisCoherenceinstance.- Specified by:
getApplicationContextin interfaceCoherenceConfiguration- Returns:
- the optional application
Contextassociated to thisCoherenceinstance
-
getDefaultSessionName
public String getDefaultSessionName()
Description copied from interface:CoherenceConfigurationReturn the name of the default session.- Specified by:
getDefaultSessionNamein interfaceCoherenceConfiguration- Returns:
- the name of the default session
-
-