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 immutableSessionConfiguration
to configure aSession
that 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 optionalClassLoader
to 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.Mode
that the session should use to set thecoherence.client
property.String
getName()
Return the name of theSession
.Optional<ParameterResolver>
getParameterResolver()
Returns an optionalParameterResolver
to use to resolve configuration parameters when creating the session.int
getPriority()
Returns the priority for this configuration.String
getScopeName()
Return the scope name of theSession
.Optional<SessionProvider>
sessionProvider()
Return theSessionProvider
to use to create a session.String
toString()
-
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:SessionConfiguration
Return the name of theSession
.If not specifically set the
Coherence.DEFAULT_NAME
will be used.A session name must be unique.
- Specified by:
getName
in interfaceSessionConfiguration
- Returns:
- the name of the
Session
-
getScopeName
public String getScopeName()
Description copied from interface:SessionConfiguration
Return the scope name of theSession
.If not specifically set, the name will default to the
SessionConfiguration.getName()
value. If theSessionConfiguration.getName()
isCoherence.DEFAULT_NAME
no scope will be used.- Specified by:
getScopeName
in interfaceSessionConfiguration
- Returns:
- the scope name of the
Session
-
getInterceptors
public Iterable<EventInterceptor<?>> getInterceptors()
Description copied from interface:SessionConfiguration
Return the interceptors to add to the session.- Specified by:
getInterceptors
in interfaceSessionConfiguration
- Returns:
- the interceptors to add to the session
-
getPriority
public int getPriority()
Description copied from interface:SessionConfiguration
Returns 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:
getPriority
in interfaceSessionConfiguration
- Returns:
- the priority for this configuration
-
getParameterResolver
public Optional<ParameterResolver> getParameterResolver()
Description copied from interface:SessionConfiguration
Returns an optionalParameterResolver
to use to resolve configuration parameters when creating the session.- Specified by:
getParameterResolver
in interfaceSessionConfiguration
- Returns:
- an optional
ParameterResolver
to use to resolve configuration parameters
-
getConfigUri
public Optional<String> getConfigUri()
Description copied from interface:SessionConfiguration
Return the optional configuration file URI for a session that wraps aConfigurableCacheFactory
.- Specified by:
getConfigUri
in interfaceSessionConfiguration
- Returns:
- the optional configuration file URI for a session that
wraps a
ConfigurableCacheFactory
-
getClassLoader
public Optional<ClassLoader> getClassLoader()
Description copied from interface:SessionConfiguration
Return the optionalClassLoader
to use for the session.- Specified by:
getClassLoader
in interfaceSessionConfiguration
- Returns:
- the optional
ClassLoader
to use for the session
-
getMode
public Optional<Coherence.Mode> getMode()
Description copied from interface:SessionConfiguration
Return an optionalCoherence.Mode
that the session should use to set thecoherence.client
property.- Specified by:
getMode
in interfaceSessionConfiguration
- Returns:
- an optional
Coherence.Mode
that the session should use to set thecoherence.client
property
-
sessionProvider
public Optional<SessionProvider> sessionProvider()
Description copied from interface:SessionConfiguration
Return theSessionProvider
to use to create a session.- Specified by:
sessionProvider
in interfaceSessionConfiguration
- Returns:
- the
SessionProvider
to use to create a session
-
-