Package com.tangosol.net
Class SessionConfiguration.ConfigurableCacheFactorySessionConfig
- java.lang.Object
-
- com.tangosol.net.SessionConfiguration.ConfigurableCacheFactorySessionConfig
-
- All Implemented Interfaces:
SessionConfiguration,Comparable<SessionConfiguration>
- Enclosing interface:
- SessionConfiguration
public static class SessionConfiguration.ConfigurableCacheFactorySessionConfig extends Object implements SessionConfiguration
An immutableSessionConfigurationto configure aSessionthat wraps an underlyingConfigurableCacheFactory.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Optional<SessionProvider>sessionProvider()Return theSessionProviderto use to create 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
compareTo, isEnabled
-
-
-
-
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
-
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
-
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
-
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
-
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
-
sessionProvider
public Optional<SessionProvider> sessionProvider()
Description copied from interface:SessionConfigurationReturn theSessionProviderto use to create a session.- Specified by:
sessionProviderin interfaceSessionConfiguration- Returns:
- the
SessionProviderto use to create a session
-
-