Package com.tangosol.net
Class SessionConfiguration.Builder
java.lang.Object
com.tangosol.net.SessionConfiguration.Builder
- Enclosing interface:
- SessionConfiguration
A builder to build a 
SessionConfiguration.ConfigurableCacheFactorySessionConfig.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build theSessionConfiguration.Set the session'scoherence.clientparameter to "direct".Set the session'scoherence.clientparameter to "remote-fixed".Set the session'scoherence.clientparameter to "remote".Set the name for the session to be created.withClassLoader(ClassLoader loader) Set theClassLoaderfor the session to be created.withConfigUri(String sURI) Set the cache configuration URI for the session to be created.withInterceptor(EventInterceptor<?> interceptor) Add anEventInterceptorto add to the sessionwithMode(Coherence.Mode mode) Set theCoherence.Modeto use, which will override any mode used by theCoherenceinstance.withParameter(Parameter parameter) Add a named parameter to use when resolving configuration parameters.withParameter(String sName, Expression<?> expression) Add a named parameter to use when resolving configuration parameters.withParameter(String sName, Object oValue) Add a named parameter to use when resolving configuration parameters.withParameterResolver(ParameterResolver resolver) Set the optionalParameterResolverto use to resolve configuration parameters.withPriority(int nPriority) Set the session creation priority.withScopeName(String sScope) Set the scope name for the session to be created.withSessionProvider(SessionProvider provider) Set theSessionProviderto use.
- 
Method Details- 
namedSet the name for the session to be created.- Parameters:
- sName- the name for the session to be created
- Returns:
- this SessionConfiguration.Builder
 
- 
withConfigUriSet the cache configuration URI for the session to be created.- Parameters:
- sURI- the cache configuration URI for the session to be created
- Returns:
- this SessionConfiguration.Builder
 
- 
withClassLoaderSet theClassLoaderfor the session to be created.- Parameters:
- loader- the- ClassLoaderfor the session to be created
- Returns:
- this SessionConfiguration.Builder
 
- 
withScopeNameSet the scope name for the session to be created.- Parameters:
- sScope- the scope name for the session to be created
- Returns:
- this SessionConfiguration.Builder
 
- 
withInterceptorAdd anEventInterceptorto add to the sessionIt is important that the interceptor is able to intercept the event types from the session being configured. Ideally use an implementation of EventDispatcherAwareInterceptorso that the interceptor can determine whether it should be registered with a specific session event dispatcher.- Parameters:
- interceptor- an- EventInterceptorto add to the session
- Returns:
- this SessionConfiguration.Builder
 
- 
withPrioritySet the session creation priority.- Parameters:
- nPriority- the session creation priority
- Returns:
- this SessionConfiguration.Builder
- See Also:
 
- 
withParameterResolverSet the optionalParameterResolverto use to resolve configuration parameters.Any parameter added directly with one of the addParametermethods will take precedence over the parameters in the specified resolver.- Parameters:
- resolver- the optional- ParameterResolverto use to resolve configuration parameters
- Returns:
- this SessionConfiguration.Builder
- See Also:
 
- 
withParameterAdd a named parameter to use when resolving configuration parameters.- Parameters:
- sName- the name of the parameter
- oValue- the parameter value
- Returns:
- this SessionConfiguration.Builder
 
- 
withParameterAdd a named parameter to use when resolving configuration parameters.- Parameters:
- sName- the name of the parameter
- expression- the parameter- Expressionto use to resolve the parameter value
- Returns:
- this SessionConfiguration.Builder
 
- 
withParameterAdd a named parameter to use when resolving configuration parameters.- Parameters:
- parameter- the named- Parameter
- Returns:
- this SessionConfiguration.Builder
 
- 
clientRemoteSet the session'scoherence.clientparameter to "remote".- Returns:
- this SessionConfiguration.Builder
 
- 
clientFixedSet the session'scoherence.clientparameter to "remote-fixed".- Returns:
- this SessionConfiguration.Builder
 
- 
clientDirectSet the session'scoherence.clientparameter to "direct".- Returns:
- this SessionConfiguration.Builder
 
- 
withModeSet theCoherence.Modeto use, which will override any mode used by theCoherenceinstance.- Parameters:
- mode- the- Coherence.Modeto use
- Returns:
- this SessionConfiguration.Builder
 
- 
withSessionProviderSet theSessionProviderto use.- Parameters:
- provider- the- SessionProviderto use
- Returns:
- this SessionConfiguration.Builder
 
- 
buildBuild theSessionConfiguration.- Returns:
- the SessionConfiguration
 
 
-