Class CosmosEmulatorInstance.Configuration
java.lang.Object
net.officefloor.nosql.cosmosdb.test.CosmosEmulatorInstance.Configuration
- Enclosing class:
- CosmosEmulatorInstance
Configuration of CosmosDb.
Follows builder pattern to allow configuring and passing to
AbstractCosmosDbJunit constructor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel) Specifies theConsistencyLevel.directPortStart(int directPortStart) Specifies the direct port start.Specifies the key.partitionCount(int partitionCount) Specifies the number of partitions.port(int port) Specifies the port.startTimeout(int startTimeout) Specifies the start timeout.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
port
Specifies the port.- Parameters:
port- Port.- Returns:
this.
-
directPortStart
Specifies the direct port start.- Parameters:
directPortStart- Direct port start.- Returns:
this.
-
partitionCount
Specifies the number of partitions.- Parameters:
partitionCount- Number of partitions.- Returns:
this.
-
key
Specifies the key.- Parameters:
key- Key.- Returns:
this.
-
consistencyLevel
public CosmosEmulatorInstance.Configuration consistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel) Specifies theConsistencyLevel.- Parameters:
consistencyLevel-ConsistencyLevel.- Returns:
this.
-
startTimeout
Specifies the start timeout.- Parameters:
startTimeout- Start timeout.- Returns:
this.
-