public class VfsConfig
extends java.lang.Object
VfsConfig is used to configure creation of VirtualFileSystem. It defines which type of
ClusteringStrategy to use and whether the VirtualFileSystem should accumulate all changes
in RAM before flushing or committing transactions. If transactions are too heavy to fit changes in RAM, then
VirtualFileSystem uses temporary files on underlying storage device.| Constructor and Description |
|---|
VfsConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAccumulateChangesInRAM() |
@NotNull ClusteringStrategy |
getClusteringStrategy()
Returns ClusteringStrategy used by the VirtualFileSystem to save contents of a file.
|
void |
setAccumulateChangesInRAM(boolean accumulateChangesInRAM) |
void |
setClusteringStrategy(@NotNull ClusteringStrategy strategy)
Sets ClusteringStrategy used by the VirtualFileSystem to save contents of a file.
|
public static final VfsConfig DEFAULT
@NotNull public @NotNull ClusteringStrategy getClusteringStrategy()
VfsConfig is ClusteringStrategy.QUADRATICpublic void setClusteringStrategy(@NotNull
@NotNull ClusteringStrategy strategy)
strategy - ClusteringStrategy instancepublic boolean getAccumulateChangesInRAM()
true if the VirtualFileSystem should accumulate all changes in RAM before flushing
or committing transactionspublic void setAccumulateChangesInRAM(boolean accumulateChangesInRAM)