Package ca.uhn.fhir.jpa.dao.expunge
Class PartitionRunner
java.lang.Object
ca.uhn.fhir.jpa.dao.expunge.PartitionRunner
-
Constructor Summary
ConstructorDescriptionPartitionRunner
(String theProcessName, String theThreadPrefix, int theBatchSize, int theThreadCount) Constructor - Use this constructor if you do not want any transaction managementPartitionRunner
(String theProcessName, String theThreadPrefix, int theBatchSize, int theThreadCount, HapiTransactionService theTransactionService, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Constructor - Use this constructor and provide aRequestDetails
andHapiTransactionService
if you want each individual callable task to be performed in a managed transaction. -
Method Summary
Modifier and TypeMethodDescriptionvoid
runInPartitionedThreads
(List<ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> theResourceIds, Consumer<List<ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>> partitionConsumer)
-
Constructor Details
-
PartitionRunner
public PartitionRunner(String theProcessName, String theThreadPrefix, int theBatchSize, int theThreadCount) Constructor - Use this constructor if you do not want any transaction management -
PartitionRunner
public PartitionRunner(String theProcessName, String theThreadPrefix, int theBatchSize, int theThreadCount, @Nullable HapiTransactionService theTransactionService, @Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Constructor - Use this constructor and provide aRequestDetails
andHapiTransactionService
if you want each individual callable task to be performed in a managed transaction.
-
-
Method Details
-
runInPartitionedThreads
public void runInPartitionedThreads(List<ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> theResourceIds, Consumer<List<ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>> partitionConsumer)
-