Class FHIRRemoteIndexService

  • Direct Known Subclasses:
    FHIRRemoteIndexKafkaService

    public abstract class FHIRRemoteIndexService
    extends java.lang.Object
    Service interface to support shipping resource search parameter values to an external service where they can be loaded into the database asynchronously. Implementations are expected to be tenant aware. They must use the tenantId value from the current FHIRRequestContext
    • Constructor Detail

      • FHIRRemoteIndexService

        public FHIRRemoteIndexService()
    • Method Detail

      • setServiceInstance

        public static void setServiceInstance​(FHIRRemoteIndexService instance)
        Initialize the serviceInstance value
        Parameters:
        instance -
      • getServiceInstance

        public static FHIRRemoteIndexService getServiceInstance()
        Get the serviceInstance value
        Returns:
      • submit

        public abstract IndexProviderResponse submit​(RemoteIndexData data)
        Submit the index data request to the async indexing service we represent
        Parameters:
        data -
        Returns:
        A wrapper for a CompletableFuture which completes when the request is acknowledged to have been received by the async service