Class NioFileManagerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder<MappedStoreManager>
com.tangosol.coherence.config.builder.storemanager.AbstractNioManagerBuilder<MappedStoreManager>
com.tangosol.coherence.config.builder.storemanager.NioFileManagerBuilder
- All Implemented Interfaces:
BuilderCustomization<MappedStoreManager>
,BinaryStoreManagerBuilder
The NioFileManagerBuilder class builds an instance of a MappedStoreManager.
- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.11.30
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDirectory
(ParameterResolver resolver) Return the path name for the root directory that the manager uses to store files in.realize
(ParameterResolver resolver, ClassLoader loader, boolean fPaged) Realize aBinaryStoreManager
given the provided parameters.void
setDirectory
(Expression<String> expr) Set the root directory where the manager stores files.Methods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractNioManagerBuilder
getInitialSize, getMaximumSize, setInitialSize, setMaximumSize, validate
Methods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder
getCustomBuilder, setCustomBuilder
-
Constructor Details
-
NioFileManagerBuilder
public NioFileManagerBuilder()
-
-
Method Details
-
realize
Realize aBinaryStoreManager
given the provided parameters.- Parameters:
resolver
- theParameterResolver
for resolving expressions and runtime parametersloader
- theClassLoader
for loading classes (if necessary)fPaged
- the flag indicating whether the map is paged- Returns:
- a
BinaryStoreManager
-
getDirectory
Return the path name for the root directory that the manager uses to store files in. If not specified or specifies a non-existent directory, a temporary file in the default location is used.- Parameters:
resolver
- the ParameterResolver- Returns:
- the root directory
-
setDirectory
Set the root directory where the manager stores files.- Parameters:
expr
- the directory name
-