io.realm.mongodb.sync
Enum describing the states of the underlying connection used by a SyncSession .
Enum Constant Summary
Enum Constant and Description |
|---|
A connection was successfully established to the server. |
A connection is currently in progress of being established. |
No connection to the server exists. |
Method Summary
Modifier and Type | Method and Description |
|---|---|
public static ConnectionState | |
public static ConnectionState | values () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalizeMethods inherited from class java.lang.Enum :
name,ordinal,toString,equals,hashCode,clone,compareTo,getDeclaringClass,valueOf,finalize
Enum Constant Detail
CONNECTED
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.
CONNECTING
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 .
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 .
Method Detail
valueOf
values
public static ConnectionState values () |
|---|