Package ca.uhn.fhir.jpa.search
Class SearchCoordinatorSvcImpl.SearchTask
java.lang.Object
ca.uhn.fhir.jpa.search.SearchCoordinatorSvcImpl.SearchTask
- Direct Known Subclasses:
SearchCoordinatorSvcImpl.SearchContinuationTask
- Enclosing class:
- SearchCoordinatorSvcImpl
A search task is a Callable task that runs in
a thread pool to handle an individual search. One instance
is created for any requested search and runs from the
beginning to the end of the search.
Understand: This class executes in its own thread separate from the web server client thread that made the request. We do that so that we can return to the client as soon as possible, but keep the search going in the background (and have the next page of results ready to go when the client asks).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SearchTask
(Search theSearch, ca.uhn.fhir.jpa.api.dao.IDao theCallingDao, SearchParameterMap theParams, String theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId) Constructor -
Method Summary
-
Constructor Details
-
SearchTask
protected SearchTask(Search theSearch, ca.uhn.fhir.jpa.api.dao.IDao theCallingDao, SearchParameterMap theParams, String theResourceType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId) Constructor
-
-
Method Details