DataQueue

open class DataQueue: Server

The (FIFO) DataQueue is a special FHIRServer implementation that will enqueue FHIR resources to disk if a first attempt at issuing a create command fails. The queue can subsequently be flushed to re-attempt creating the resources on the FHIR server, in their original order.

  • Undocumented

    Declaration

    Swift

    open class DataQueue: Server
  • Undocumented

    Declaration

    Swift

    open class DataQueue: Server
  • Enqueues the given resource.

    Declaration

    Swift

    open func enqueue(resource: Resource)

    Parameters

    resource

    The FHIR Resource to enqueue

  • Starts flushing the queue, oldest resources first, until no more resources are enqueued or an error occurs.

    Declaration

    Swift

    open func flush(callback: @escaping ((Error?) -> Void))