Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Enum ConnectionState

On this page

  • io.realm.mongodb.sync
  • Enum Constant Summary
  • Method Summary
  • Inherited Methods
  • Enum Constant Detail
  • CONNECTED
  • CONNECTING
  • DISCONNECTED
  • Method Detail
  • valueOf
  • values
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.

Modifier and Type
Method and Description
public static ConnectionState
public static ConnectionState
  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

  • Methods inherited from class java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final ConnectionState

A connection was successfully established to the server. If the SyncSession is SyncSession.State.ACTIVE data will now be transferred between the device and the server.

public static final ConnectionState

A connection is currently in progress of being established. If successful the next state is CONNECTED . If the connection fails it will be DISCONNECTED .

public static final ConnectionState

No connection to the server exists. No data is being transferred even if the session is SyncSession.State.ACTIVE . If the connection entered this state due to an error, this error will be reported to the SyncSession.ErrorHandler .

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

Back

ConnectionListener