Package com.tangosol.net
Class WrapperSessionConfiguration
- java.lang.Object
-
- com.tangosol.net.WrapperSessionConfiguration
-
- All Implemented Interfaces:
SessionConfiguration,Comparable<SessionConfiguration>
public class WrapperSessionConfiguration extends Object implements SessionConfiguration
ASessionConfigurationthat delegates to anotherSessionConfiguration.- Since:
- 22.06.2
- Author:
- Jonathan Knight 2022.08.25
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.net.SessionConfiguration
SessionConfiguration.Builder, SessionConfiguration.ConfigurableCacheFactorySessionConfig
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.SessionConfiguration
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description WrapperSessionConfiguration(SessionConfiguration delegate)Create aWrapperSessionConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SessionConfiguration other)Order SessionConfiguration by priority, the lowest priority comes first.Optional<ClassLoader>getClassLoader()Return the optionalClassLoaderto use for the session.Optional<String>getConfigUri()Return the optional configuration file URI for a session that wraps aConfigurableCacheFactory.Iterable<EventInterceptor<?>>getInterceptors()Return the interceptors to add to the session.Optional<Coherence.Mode>getMode()Return an optionalCoherence.Modethat the session should use to set thecoherence.clientproperty.StringgetName()Return the name of theSession.Optional<ParameterResolver>getParameterResolver()Returns an optionalParameterResolverto use to resolve configuration parameters when creating the session.intgetPriority()Returns the priority for this configuration.StringgetScopeName()Return the scope name of theSession.booleanisEnabled()Returntrueif this configuration is enabled and should be used to configure a session.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tangosol.net.SessionConfiguration
sessionProvider
-
-
-
-
Constructor Detail
-
WrapperSessionConfiguration
public WrapperSessionConfiguration(SessionConfiguration delegate)
Create aWrapperSessionConfiguration.- Parameters:
delegate- theSessionConfigurationto delegate to- Throws:
NullPointerException- if the delegate isnull
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SessionConfigurationReturn the name of theSession.If not specifically set the
Coherence.DEFAULT_NAMEwill be used.A session name must be unique.
- Specified by:
getNamein interfaceSessionConfiguration- Returns:
- the name of the
Session
-
getScopeName
public String getScopeName()
Description copied from interface:SessionConfigurationReturn the scope name of theSession.If not specifically set, the name will default to the
SessionConfiguration.getName()value. If theSessionConfiguration.getName()isCoherence.DEFAULT_NAMEno scope will be used.- Specified by:
getScopeNamein interfaceSessionConfiguration- Returns:
- the scope name of the
Session
-
getInterceptors
public Iterable<EventInterceptor<?>> getInterceptors()
Description copied from interface:SessionConfigurationReturn the interceptors to add to the session.- Specified by:
getInterceptorsin interfaceSessionConfiguration- Returns:
- the interceptors to add to the session
-
isEnabled
public boolean isEnabled()
Description copied from interface:SessionConfigurationReturntrueif this configuration is enabled and should be used to configure a session.- Specified by:
isEnabledin interfaceSessionConfiguration- Returns:
trueif this configuration is enabled
-
getConfigUri
public Optional<String> getConfigUri()
Description copied from interface:SessionConfigurationReturn the optional configuration file URI for a session that wraps aConfigurableCacheFactory.- Specified by:
getConfigUriin interfaceSessionConfiguration- Returns:
- the optional configuration file URI for a session that
wraps a
ConfigurableCacheFactory
-
getClassLoader
public Optional<ClassLoader> getClassLoader()
Description copied from interface:SessionConfigurationReturn the optionalClassLoaderto use for the session.- Specified by:
getClassLoaderin interfaceSessionConfiguration- Returns:
- the optional
ClassLoaderto use for the session
-
getPriority
public int getPriority()
Description copied from interface:SessionConfigurationReturns the priority for this configuration.Sessions will be created in priority order, the highest priority first.
The default priority is zero (see
SessionConfiguration.DEFAULT_PRIORITY).- Specified by:
getPriorityin interfaceSessionConfiguration- Returns:
- the priority for this configuration
-
compareTo
public int compareTo(SessionConfiguration other)
Description copied from interface:SessionConfigurationOrder SessionConfiguration by priority, the lowest priority comes first.- Specified by:
compareToin interfaceComparable<SessionConfiguration>- Specified by:
compareToin interfaceSessionConfiguration- Parameters:
other- the configuration to compare to- Returns:
- compare this configuration with the specified configuration ordering by priority
-
getParameterResolver
public Optional<ParameterResolver> getParameterResolver()
Description copied from interface:SessionConfigurationReturns an optionalParameterResolverto use to resolve configuration parameters when creating the session.- Specified by:
getParameterResolverin interfaceSessionConfiguration- Returns:
- an optional
ParameterResolverto use to resolve configuration parameters
-
getMode
public Optional<Coherence.Mode> getMode()
Description copied from interface:SessionConfigurationReturn an optionalCoherence.Modethat the session should use to set thecoherence.clientproperty.- Specified by:
getModein interfaceSessionConfiguration- Returns:
- an optional
Coherence.Modethat the session should use to set thecoherence.clientproperty
-
-