ConnectionMode Enum

Definition

Represents the connection mode to be used by the client in the Azure Cosmos DB database service.

DIRECT and GATEWAY connectivity modes are supported. DIRECT is the default.

public enum ConnectionMode extends Enum<ConnectionMode>
Inheritance
java.lang.Object
java.lang.Enum
ConnectionMode

Inherited Members

java.lang.Enum.<T>valueOf(java.lang.Class<T>,java.lang.String) java.lang.Enum.clone() java.lang.Enum.compareTo(E) java.lang.Enum.equals(java.lang.Object) java.lang.Enum.finalize() java.lang.Enum.getDeclaringClass() java.lang.Enum.hashCode() java.lang.Enum.name() java.lang.Enum.ordinal() java.lang.Enum.toString() java.lang.Object.getClass() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Fields

DIRECT

Specifies that requests to server resources are made directly to the data nodes.

In DIRECT mode, all requests to server resources within a container, such as items, stored procedures and user-defined functions, etc., are made directly to the data nodes within the target Cosmos DB cluster using either the HTTPS or TCP/SSL transport protocol.

Certain operations on account or database level resources, such as databases, containers and users, etc., are always routed through the gateway using HTTPS.

GATEWAY

Specifies that requests to server resources are made through a gateway proxy using HTTPS.

In GATEWAY mode, all requests are made through a gateway proxy.

Methods

valueOf(String name)

public static ConnectionMode valueOf(String name)

Parameters

name
java.lang.String

Returns

values()

public static ConnectionMode[] values()

Parameters

name
java.lang.String

Returns

Applies to