Class NioFileManagerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder<T>
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
Constructors -
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 aBinaryStoreManagergiven the provided parameters.voidsetDirectory(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, validateMethods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder
getCustomBuilder, setCustomBuilder
-
Constructor Details
-
NioFileManagerBuilder
public NioFileManagerBuilder()
-
-
Method Details
-
realize
Realize aBinaryStoreManagergiven the provided parameters.- Parameters:
resolver- theParameterResolverfor resolving expressions and runtime parametersloader- theClassLoaderfor 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
-