Class FHIRRemoteIndexService
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.FHIRRemoteIndexService
-
- Direct Known Subclasses:
FHIRRemoteIndexKafkaService
public abstract class FHIRRemoteIndexService extends java.lang.ObjectService 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 FHIRRemoteIndexServicegetServiceInstance()Get the serviceInstance valuestatic voidsetServiceInstance(FHIRRemoteIndexService instance)Initialize the serviceInstance valueabstract IndexProviderResponsesubmit(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
-
-