Interface BatchService


public interface BatchService
Defines the service to work with batches.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int key)
    Returns a Batch by its key.
    int
    handleBatch(byte[] entitiesFile, byte[] contactsFile, ExportFormat format)
    Handles a batch.
  • Method Details

    • handleBatch

      int handleBatch(byte[] entitiesFile, byte[] contactsFile, ExportFormat format)
      Handles a batch. The batch can be to either do an initial import or to update existing data.
      Parameters:
      entitiesFile - file with the entities to import or update
      contactsFile - file with the contacts to import or update
      format - ExportFormat of the files
      Returns:
      key of the batch created
    • get

      Batch get(int key)
      Returns a Batch by its key.
      Parameters:
      key - key of the batch
      Returns:
      Batch