io.realm.mongodb.sync
Class encapsulating information needed for handling a Client Reset event.
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public void | Llamar a este método ejecutará el restablecimiento del cliente manualmente en lugar de esperar hasta el siguiente reinicio de la aplicación. |
public archivo | Returns the location of the backed up Realm file. |
public RealmConfiguration | La configuración que puede usarse para abrir el Realm de copia de seguridad sin conexión. |
public archivo | Returns the location of the original Realm file. |
Inherited Methods
Métodos heredados de la clase java.lang.Object:
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalizeMethods inherited from class java.lang.Throwable :
getMessage,getLocalizedMessage,getCause,initCause,toString,printStackTrace,printStackTrace,printStackTrace,fillInStackTrace,getStackTrace,setStackTrace,addSuppressed,getSuppressedMétodos heredados de la clase io.realm.mongodb.AppException :
getErrorCode,getErrorType,getErrorIntValue,getErrorMessage,getException,getCategory,toString
Detalle del método
executeClientReset
public void executeClientReset () |
|---|
Llamar a este método ejecutará el restablecimiento del cliente manualmente en lugar de esperar hasta el siguiente reinicio de la aplicación. Esto solo será posible si se han cerrado todas las instancias de ese Realm, de lo contrario, se lanzará una IllegalStateException. After this method returns, the backup file can be found in the location returned by getBackupFile() . The file at getOriginalFile() have been deleted, but will be recreated from scratch next time a Realm instance is opened. Throws
|
getBackupFile
public File getBackupFile () |
|---|
Devuelve la ubicación del archivo Realm respaldado. El archivo no estará presente hasta que el restablecimiento del Cliente se haya ejecutado completamente. Devuelve a reference to the location of the backup file once Client Reset has been executed. Use |
getBackupRealmConfiguration
La configuración que permite abrir el dominio de respaldo sin conexión. Esta configuración solo se puede usar con un dominio dinámico. Devuelve the configuration that can be used to open the backup Realm offline. |
getOriginalFile
public File getOriginalFile () |
|---|
Devuelve la ubicación del archivo Realm original. Después de que se haya completado el restablecimiento del cliente, el archivo en esta ubicación se borrará. Devuelve a reference to the location of the original Realm file. After Client Reset has been executed this file will no longer exists. Use |