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 TypeMethodDescription<T> void
runInPartitionedThreads
(List<T> theResourceIds, Consumer<List<T>> 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 <T> void runInPartitionedThreads(List<T> theResourceIds, Consumer<List<T>> partitionConsumer)
-