ISyncLogManager class abstract
Interface para gerenciamento interno de logs de sincronização
Esta interface define os métodos necessários para o sistema de sincronização gerenciar seus próprios logs de forma independente.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanupOldSyncedLogs(
DateTime olderThan) → Future< void> - Remove logs sincronizados mais antigos que a data especificada
-
clearAllLogs(
) → Future< void> - Remove todos os logs
-
createLog(
SyncLog log) → Future< void> - Cria um novo log de sincronização
-
getAllLogs(
) → Future< List< SyncLog> > - Obtém todos os logs
-
getFailedLogs(
) → Future< List< SyncLog> > - Obtém logs com falha (que falharam em tentativas anteriores)
-
getLogsByEntityType(
String entityType) → Future< List< SyncLog> > - Obtém logs por tipo de entidade
-
getLogsBySyncId(
String syncId) → Future< List< SyncLog> > - Obtém logs por ID de sincronização
-
getLogStatistics(
) → Future< Map< String, int> > - Obtém estatísticas dos logs
-
getPendingLogs(
) → Future< List< SyncLog> > - Obtém todos os logs pendentes de sincronização
-
incrementRetryCount(
String syncId) → Future< void> - Incrementa o contador de tentativas de um log
-
markAsSynced(
String syncId) → Future< void> - Marca um log como sincronizado
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeLog(
String syncId) → Future< void> - Remove um log específico
-
setLastError(
String syncId, String error) → Future< void> - Define o último erro de um log
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited