public class FileSystemOptions extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_CLASS_PATH_RESOLVING_ENABLED
The default behavior to cache or not class path resolution =
false if and only if the system property "vertx.disableFileCPResolving" exists and is set to the string "false" |
static String |
DEFAULT_FILE_CACHING_DIR
The default file caching dir.
|
static boolean |
DEFAULT_FILE_CACHING_ENABLED
The default behavior for caching files for class path resolution =
false if and only if the system property "vertx.disableFileCaching" exists and is set to the string "false" |
Constructor and Description |
---|
FileSystemOptions()
Default constructor
|
FileSystemOptions(FileSystemOptions other)
Copy constructor
|
FileSystemOptions(JsonObject json)
Creates a new instance of
FileSystemOptions from the JSON object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFileCacheDir() |
int |
hashCode() |
boolean |
isClassPathResolvingEnabled() |
boolean |
isFileCachingEnabled() |
FileSystemOptions |
setClassPathResolvingEnabled(boolean classPathResolvingEnabled)
When vert.x cannot find the file on the filesystem it tries to resolve the
file from the class path when this is set to
true . |
FileSystemOptions |
setFileCacheDir(String fileCacheDir)
When vert.x reads a file that is packaged with the application it gets
extracted to this directory first and subsequent reads will use the extracted
file to get better IO performance.
|
FileSystemOptions |
setFileCachingEnabled(boolean fileCachingEnabled)
Set to
true to cache files on the real file system
when the filesystem performs class path resolving. |
JsonObject |
toJson()
Builds a JSON object representing the current
FileSystemOptions . |
String |
toString() |
public static final boolean DEFAULT_FILE_CACHING_ENABLED
false
if and only if the system property "vertx.disableFileCaching"
exists and is set to the string "false"
public static final boolean DEFAULT_CLASS_PATH_RESOLVING_ENABLED
false
if and only if the system property "vertx.disableFileCPResolving"
exists and is set to the string "false"
public static final String DEFAULT_FILE_CACHING_DIR
"vertx.cacheDirBase"
is set, then this is the value
If not, then the system property java.io.tmpdir
is taken or {code .} if not set. suffixed with vertx-cache
.public FileSystemOptions()
public FileSystemOptions(FileSystemOptions other)
other
- The other FileSystemOptions
to copy when creating thispublic FileSystemOptions(JsonObject json)
FileSystemOptions
from the JSON object. This JSOn object has (generally)
been generated using toJson()
.json
- the json objectpublic JsonObject toJson()
FileSystemOptions
.public boolean isClassPathResolvingEnabled()
public FileSystemOptions setClassPathResolvingEnabled(boolean classPathResolvingEnabled)
true
.classPathResolvingEnabled
- the valuepublic boolean isFileCachingEnabled()
public FileSystemOptions setFileCachingEnabled(boolean fileCachingEnabled)
true
to cache files on the real file system
when the filesystem performs class path resolving.fileCachingEnabled
- the valuepublic String getFileCacheDir()
public FileSystemOptions setFileCacheDir(String fileCacheDir)
fileCacheDir
- the valueCopyright © 2023 Eclipse. All rights reserved.