Package org.apache.tapestry5.mongodb
Class MongoDBSymbols
java.lang.Object
org.apache.tapestry5.mongodb.MongoDBSymbols
Configuration symbols, for use with contributions to
ApplicationDefaults.
All Symbol are relative to the usage of
MongoDB support within Apache Tapestry.- Since:
- 5.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe maximum number of connections allowed per host for this Mongo instance.static final StringWhere to use or not the consisten request paradigm.static final StringPassword to use to connect Mongo DB.static final StringUsername to use to connect Mongo DB.static final StringThe MongoDB default database name to connect to.static final StringTheReadPreferenceto use.static final Stringtrueif you need to connect to Mongo DB in secure mode,falseotherwise.static final StringTheWriteConcernto use. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WRITE_CONCERN
TheWriteConcernto use. Default toWriteConcern.ACKNOWLEDGED.- See Also:
-
READ_PREFERENCE
TheReadPreferenceto use. Default toReadPreference.primary().- See Also:
-
CONNECTIONS_PER_HOSTS
The maximum number of connections allowed per host for this Mongo instance. Defaults to 10.- See Also:
-
DEFAULT_DB_NAME
The MongoDB default database name to connect to. No default provided.- See Also:
-
CONSISTENT_REQUEST
Where to use or not the consisten request paradigm. Default to false;- See Also:
-
SECURE_MODE
trueif you need to connect to Mongo DB in secure mode,falseotherwise. You need to set DB_USERNAME and DB_PASSWORD too if this is set totrue. Defaults tofalse- See Also:
-
DB_USERNAME
Username to use to connect Mongo DB. Defaults to empty string.- See Also:
-
DB_PASSWORD
Password to use to connect Mongo DB. Defaults to empty string.- See Also:
-
-
Constructor Details
-
MongoDBSymbols
public MongoDBSymbols()
-