public final class CalendarSyncEngine
- Object
- CalendarSyncEngine
Opt-in local-first mutation queue. It deliberately does not own credentials
or silently schedule work; applications call
sync() or connect it to a
platform background-work callback.Constructors
public CalendarSyncEngine(CalendarSource source, CalendarCache cache)
throws CalendarException |
Methods
Inherited methods
Constructor details
CalendarSyncEngine
public CalendarSyncEngine(CalendarSource source, CalendarCache cache)
throws CalendarExceptionThrows
Method details
queueEventSave
public synchronized String queueEventSave(CalendarEvent event, CalendarMutationScope scope)
throws CalendarExceptionThrows
queueEventDelete
public synchronized String queueEventDelete(String calendarId, String eventId, String version, CalendarMutationScope scope)
throws CalendarExceptionThrows
queueTaskSave
public synchronized String queueTaskSave(CalendarTask task, CalendarMutationScope scope)
throws CalendarExceptionThrows
queueTaskDelete
public synchronized String queueTaskDelete(String calendarId, String taskId, String version, CalendarMutationScope scope)
throws CalendarExceptionThrows
getPendingCount
public synchronized int getPendingCount()sync
public synchronized AsyncResource<CalendarSyncResult> sync()resolveConflict
public synchronized void resolveConflict(String mutationId, CalendarConflict.Resolution resolution, Map<String, Object> merged)
throws CalendarException