public class SyncService extends Object
The service connects to an Imixs-Workflow instance by the Rest Client to read new snapshot data.
The service is triggered by the SyncScheduler implementing a ManagedScheduledExecutorService.
| Constructor and Description |
|---|
SyncService() |
| Modifier and Type | Method and Description |
|---|---|
void |
processEventLog(org.imixs.melman.EventLogClient eventLogClient,
org.imixs.melman.DocumentClient documentClient)
This method is called by the ManagedScheduledExecutorService.
|
void |
pullSnapshot(org.imixs.workflow.ItemCollection eventLogEntry,
org.imixs.melman.DocumentClient documentClient,
org.imixs.melman.EventLogClient eventLogClient)
This method lookups the event log entries and pushes new snapshots into the
archive service.
|
void |
releaseDeadLocks(org.imixs.melman.EventLogClient eventLogClient)
Asynchronous method to release dead locks
|
public void processEventLog(org.imixs.melman.EventLogClient eventLogClient,
org.imixs.melman.DocumentClient documentClient)
throws org.imixs.melman.RestAPIException
Each eventLogEntry is locked to guaranty exclusive processing.
org.imixs.melman.RestAPIExceptionpublic void releaseDeadLocks(org.imixs.melman.EventLogClient eventLogClient)
throws org.imixs.melman.RestAPIException
eventLogClient - deadLockInterval - topic - org.imixs.melman.RestAPIExceptionpublic void pullSnapshot(org.imixs.workflow.ItemCollection eventLogEntry,
org.imixs.melman.DocumentClient documentClient,
org.imixs.melman.EventLogClient eventLogClient)
throws ArchiveException
The method returns a AsyncResult to indicate the completion of the push. A client can use this information for further control.
ArchiveExceptionorg.imixs.melman.RestAPIExceptionCopyright © 2016–2023 Imixs Software Solutions GmbH. All rights reserved.