public final class ImmutableMongodArguments extends MongodArguments
MongodArguments.
Use the builder to create immutable instances:
ImmutableMongodArguments.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongodArguments.Builder
Builds instances of type
ImmutableMongodArguments. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
args() |
boolean |
auth() |
static ImmutableMongodArguments.Builder |
builder()
Creates a builder for
ImmutableMongodArguments. |
static ImmutableMongodArguments |
copyOf(MongodArguments instance)
Creates an immutable copy of a
MongodArguments value. |
boolean |
enableTextSearch() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongodArguments that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
syncDelay, useDefaultSyncDelay, storageEngine, isVerbose, verbosityLevel, isQuiet, useNoPrealloc, useSmallFiles, useNoJournal, enableTextSearch, auth, master, replication, isConfigServer, isShardServer, params, args. |
boolean |
isConfigServer() |
boolean |
isQuiet() |
boolean |
isShardServer() |
boolean |
isVerbose() |
boolean |
master() |
Map<String,String> |
params() |
Optional<Storage> |
replication() |
Optional<String> |
storageEngine() |
int |
syncDelay() |
String |
toString()
Prints the immutable value
MongodArguments with attribute values. |
boolean |
useDefaultSyncDelay() |
boolean |
useNoJournal() |
boolean |
useNoPrealloc() |
boolean |
useSmallFiles() |
int |
verbosityLevel() |
ImmutableMongodArguments |
withArgs(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
args map with the specified map. |
ImmutableMongodArguments |
withAuth(boolean value)
Copy the current immutable object by setting a value for the
auth attribute. |
ImmutableMongodArguments |
withEnableTextSearch(boolean value)
Copy the current immutable object by setting a value for the
enableTextSearch attribute. |
ImmutableMongodArguments |
withIsConfigServer(boolean value)
Copy the current immutable object by setting a value for the
isConfigServer attribute. |
ImmutableMongodArguments |
withIsQuiet(boolean value)
Copy the current immutable object by setting a value for the
isQuiet attribute. |
ImmutableMongodArguments |
withIsShardServer(boolean value)
Copy the current immutable object by setting a value for the
isShardServer attribute. |
ImmutableMongodArguments |
withIsVerbose(boolean value)
Copy the current immutable object by setting a value for the
isVerbose attribute. |
ImmutableMongodArguments |
withMaster(boolean value)
Copy the current immutable object by setting a value for the
master attribute. |
ImmutableMongodArguments |
withParams(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
params map with the specified map. |
ImmutableMongodArguments |
withReplication(Optional<? extends Storage> optional)
Copy the current immutable object by setting an optional value for the
replication attribute. |
ImmutableMongodArguments |
withReplication(Storage value)
Copy the current immutable object by setting a present value for the optional
replication attribute. |
ImmutableMongodArguments |
withStorageEngine(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
storageEngine attribute. |
ImmutableMongodArguments |
withStorageEngine(String value)
Copy the current immutable object by setting a present value for the optional
storageEngine attribute. |
ImmutableMongodArguments |
withSyncDelay(int value)
Copy the current immutable object by setting a value for the
syncDelay attribute. |
ImmutableMongodArguments |
withUseDefaultSyncDelay(boolean value)
Copy the current immutable object by setting a value for the
useDefaultSyncDelay attribute. |
ImmutableMongodArguments |
withUseNoJournal(boolean value)
Copy the current immutable object by setting a value for the
useNoJournal attribute. |
ImmutableMongodArguments |
withUseNoPrealloc(boolean value)
Copy the current immutable object by setting a value for the
useNoPrealloc attribute. |
ImmutableMongodArguments |
withUseSmallFiles(boolean value)
Copy the current immutable object by setting a value for the
useSmallFiles attribute. |
ImmutableMongodArguments |
withVerbosityLevel(int value)
Copy the current immutable object by setting a value for the
verbosityLevel attribute. |
asArguments, defaultspublic int syncDelay()
syncDelay in class MongodArgumentssyncDelay attributepublic boolean useDefaultSyncDelay()
useDefaultSyncDelay in class MongodArgumentsuseDefaultSyncDelay attributepublic Optional<String> storageEngine()
storageEngine in class MongodArgumentsstorageEngine attributepublic boolean isVerbose()
isVerbose in class MongodArgumentsisVerbose attributepublic int verbosityLevel()
verbosityLevel in class MongodArgumentsverbosityLevel attributepublic boolean isQuiet()
isQuiet in class MongodArgumentsisQuiet attributepublic boolean useNoPrealloc()
useNoPrealloc in class MongodArgumentsuseNoPrealloc attributepublic boolean useSmallFiles()
useSmallFiles in class MongodArgumentsuseSmallFiles attributepublic boolean useNoJournal()
useNoJournal in class MongodArgumentsuseNoJournal attributepublic boolean enableTextSearch()
enableTextSearch in class MongodArgumentsenableTextSearch attributepublic boolean auth()
auth in class MongodArgumentsauth attributepublic boolean master()
master in class MongodArgumentsmaster attributepublic Optional<Storage> replication()
replication in class MongodArgumentsreplication attributepublic boolean isConfigServer()
isConfigServer in class MongodArgumentsisConfigServer attributepublic boolean isShardServer()
isShardServer in class MongodArgumentsisShardServer attributepublic Map<String,String> params()
params in class MongodArgumentsparams attributepublic Map<String,String> args()
args in class MongodArgumentsargs attributepublic final ImmutableMongodArguments withSyncDelay(int value)
syncDelay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for syncDelaythis objectpublic final ImmutableMongodArguments withUseDefaultSyncDelay(boolean value)
useDefaultSyncDelay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useDefaultSyncDelaythis objectpublic final ImmutableMongodArguments withStorageEngine(String value)
storageEngine attribute.value - The value for storageEnginethis objectpublic final ImmutableMongodArguments withStorageEngine(Optional<String> optional)
storageEngine attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for storageEnginethis objectpublic final ImmutableMongodArguments withIsVerbose(boolean value)
isVerbose attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isVerbosethis objectpublic final ImmutableMongodArguments withVerbosityLevel(int value)
verbosityLevel attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for verbosityLevelthis objectpublic final ImmutableMongodArguments withIsQuiet(boolean value)
isQuiet attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isQuietthis objectpublic final ImmutableMongodArguments withUseNoPrealloc(boolean value)
useNoPrealloc attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useNoPreallocthis objectpublic final ImmutableMongodArguments withUseSmallFiles(boolean value)
useSmallFiles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useSmallFilesthis objectpublic final ImmutableMongodArguments withUseNoJournal(boolean value)
useNoJournal attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useNoJournalthis objectpublic final ImmutableMongodArguments withEnableTextSearch(boolean value)
enableTextSearch attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for enableTextSearchthis objectpublic final ImmutableMongodArguments withAuth(boolean value)
auth attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for auththis objectpublic final ImmutableMongodArguments withMaster(boolean value)
master attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for masterthis objectpublic final ImmutableMongodArguments withReplication(Storage value)
replication attribute.value - The value for replicationthis objectpublic final ImmutableMongodArguments withReplication(Optional<? extends Storage> optional)
replication attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for replicationthis objectpublic final ImmutableMongodArguments withIsConfigServer(boolean value)
isConfigServer attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isConfigServerthis objectpublic final ImmutableMongodArguments withIsShardServer(boolean value)
isShardServer attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isShardServerthis objectpublic final ImmutableMongodArguments withParams(Map<String,? extends String> entries)
params map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the params mapthis objectpublic final ImmutableMongodArguments withArgs(Map<String,? extends String> entries)
args map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the args mapthis objectpublic boolean equals(Object another)
ImmutableMongodArguments that have equal attribute values.public int hashCode()
syncDelay, useDefaultSyncDelay, storageEngine, isVerbose, verbosityLevel, isQuiet, useNoPrealloc, useSmallFiles, useNoJournal, enableTextSearch, auth, master, replication, isConfigServer, isShardServer, params, args.public String toString()
MongodArguments with attribute values.public static ImmutableMongodArguments copyOf(MongodArguments instance)
MongodArguments value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableMongodArguments.Builder builder()
ImmutableMongodArguments.
ImmutableMongodArguments.builder()
.syncDelay(int) // optional syncDelay
.useDefaultSyncDelay(boolean) // optional useDefaultSyncDelay
.storageEngine(String) // optional storageEngine
.isVerbose(boolean) // optional isVerbose
.verbosityLevel(int) // optional verbosityLevel
.isQuiet(boolean) // optional isQuiet
.useNoPrealloc(boolean) // optional useNoPrealloc
.useSmallFiles(boolean) // optional useSmallFiles
.useNoJournal(boolean) // optional useNoJournal
.enableTextSearch(boolean) // optional enableTextSearch
.auth(boolean) // optional auth
.master(boolean) // optional master
.replication(de.flapdoodle.embed.mongo.config.Storage) // optional replication
.isConfigServer(boolean) // optional isConfigServer
.isShardServer(boolean) // optional isShardServer
.putParams|putAllParams(String => String) // params mappings
.putArgs|putAllArgs(String => String) // args mappings
.build();
Copyright © 2023. All rights reserved.