Package ca.uhn.fhir.jpa.search
Class SearchUrlJobMaintenanceSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.search.SearchUrlJobMaintenanceSvcImpl
- All Implemented Interfaces:
ISearchUrlJobMaintenanceSvc
,ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
public class SearchUrlJobMaintenanceSvcImpl
extends Object
implements ISearchUrlJobMaintenanceSvc, ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
The purpose of this service is to define and register a job that will clean up
entries created by an instance of
ResourceSearchUrlSvc
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
An hour at 3k resources/second is ~10M resources. -
Constructor Summary
ConstructorDescriptionSearchUrlJobMaintenanceSvcImpl
(ResourceSearchUrlSvc theResourceSearchUrlSvc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
scheduleJobs
(ca.uhn.fhir.jpa.model.sched.ISchedulerService theSchedulerService)
-
Field Details
-
OUR_CUTOFF_IN_MILLISECONDS
An hour at 3k resources/second is ~10M resources. That's easy to manage with deletes by age. We can shorten this if we have memory or storage pressure. MUST be longer that longest transaction possible to work.- See Also:
-
-
Constructor Details
-
SearchUrlJobMaintenanceSvcImpl
-
-
Method Details
-
removeStaleEntries
- Specified by:
removeStaleEntries
in interfaceISearchUrlJobMaintenanceSvc
-
scheduleJobs
- Specified by:
scheduleJobs
in interfaceca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-