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 String
The maximum number of connections allowed per host for this Mongo instance.static final String
Where to use or not the consisten request paradigm.static final String
Password to use to connect Mongo DB.static final String
Username to use to connect Mongo DB.static final String
The MongoDB default database name to connect to.static final String
TheReadPreference
to use.static final String
true
if you need to connect to Mongo DB in secure mode,false
otherwise.static final String
TheWriteConcern
to use. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WRITE_CONCERN
TheWriteConcern
to use. Default toWriteConcern.ACKNOWLEDGED
.- See Also:
-
READ_PREFERENCE
TheReadPreference
to 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
true
if you need to connect to Mongo DB in secure mode,false
otherwise. 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()
-