public static class MongoDbProvider.Builder<B extends MongoDbProvider.Builder<B>> extends AbstractFilterable.Builder<B> implements Builder<MongoDbProvider>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MongoDbProvider |
build()
Builds the object after all configuration has been set.
|
B |
setCapped(boolean isCapped) |
B |
setCollectionName(String collectionName) |
B |
setCollectionSize(int collectionSize) |
B |
setDatabaseName(String databaseName) |
B |
setFactoryClassName(String factoryClassName) |
B |
setFactoryMethodName(String factoryMethodName) |
B |
setPassword(String password) |
B |
setPort(String port) |
B |
setServer(String server) |
B |
setUserName(String userName) |
B |
setWriteConcernConstant(String writeConcernConstant) |
B |
setWriteConcernConstantClassName(String writeConcernConstantClassName) |
asBuilder, getFilter, withFilterpublic B setCapped(boolean isCapped)
public B setCollectionSize(int collectionSize)
public B setWriteConcernConstantClassName(String writeConcernConstantClassName)
public MongoDbProvider build()
Builderbuild in interface Builder<MongoDbProvider>Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.