Class FHIRRemoteIndexService
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.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 currentFHIRRequestContext
-
-
Constructor Summary
Constructors Constructor Description FHIRRemoteIndexService()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FHIRRemoteIndexService
getServiceInstance()
Get the serviceInstance valuestatic void
setServiceInstance(FHIRRemoteIndexService instance)
Initialize the serviceInstance valueabstract IndexProviderResponse
submit(RemoteIndexData data)
Submit the index data request to the async indexing service we represent
-
-
-
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
-
-