Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm.mongodb.sync

Enum ConnectionState

java.lang.Object
io.realm.mongodb.sync.ConnectionState

Enum describing the states of the underlying connection used by a SyncSession .

Enum Constant and Description

CONNECTED

A connection was successfully established to the server.

CONNECTING

A connection is currently in progress of being established.

DISCONNECTED

No connection to the server exists.

Modificador y Tipo
Método y descripción

público estático ConnectionState

público estático ConnectionState

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

  • Métodos heredados de la clase java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final ConnectionState

Se estableció correctamente la conexión con el servidor. Si la sesión de sincronización es SyncSession.State.ACTIVE, se transferirán los datos entre el dispositivo y el servidor.

public static final ConnectionState

Se está estableciendo una conexión. Si se establece correctamente, el siguiente estado será CONECTADO. Si falla, se desconecta.

public static final ConnectionState

No existe conexión con el servidor. No se transfieren datos, incluso si la sesión está en SyncSession.State.ACTIVE. Si la conexión entró en este estado debido a un error, este se informará al SyncSession.ErrorHandler.

public static ConnectionState valueOf (
String name
)
public static ConnectionState values ()

Volver

ConnectionListener

En esta página