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 ProgressMode

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

Enum para describir cómo escuchar el avance de los cambios.

Enum Constant and Description

CURRENT_CHANGES

Al registrar ProgressListener, se registrará el tamaño actual de los cambios y solo continuará informando actualizaciones de progreso hasta que dichos cambios se hayan descargado o cargado.

INDEFINITELY

Un ProgressListener registrado en este modo continuará informando cambios de progreso, incluso si se agregan cambios después de que se registró el oyente.

Modificador y Tipo
Método y descripción

público estático ProgressMode

público estático ProgressMode

  • 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 ProgressMode

When registering the ProgressListener , it will record the current size of changes, and will only continue to report progress updates until those changes have been either downloaded or uploaded. After that the progress listener will not report any further changes.

Esto significa que los oyentes registrados en este modo deben completarse antes de que se escriban los cambios en el Realm.

Progress reported in this mode will only ever increase.

This is useful when e.g. reporting progress when downloading a Realm for the first time.

public static final ProgressMode

Un ProgressListener registrado en este modo continuará informando cambios de progreso, incluso si se agregan cambios después de que se registró el oyente.

Progress reported in this mode can both increase and decrease, e.g. if large amounts of data is written after registering the listener.

This is useful when you want to track if all changes have been uploaded to the server from the device.

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

Volver

ProgressListener

En esta página