Class ContentEntityMigrationTaskWrapper
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.tasks.ContentEntityMigrationTaskWrapper
- All Implemented Interfaces:
org.springframework.transaction.support.TransactionCallback<Integer>
public class ContentEntityMigrationTaskWrapper
extends Object
implements org.springframework.transaction.support.TransactionCallback<Integer>
Wraps a
ContentEntityMigrationBatchTask
and ensures that the flush mode of the session is set
to commit. This ensures that our session doesn't chew all the memory as we load each and every
CEO.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provides coordinated thread-safe logging of progress across multiple executing threads. -
Constructor Summary
ConstructorDescriptionContentEntityMigrationTaskWrapper
(ExceptionReport report, BatchableWorkSource<ContentEntityObject> workSource, ContentEntityMigrationBatchTask batchTask, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback, org.hibernate.SessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptiondoInTransaction
(org.springframework.transaction.TransactionStatus status)
-
Constructor Details
-
ContentEntityMigrationTaskWrapper
public ContentEntityMigrationTaskWrapper(ExceptionReport report, BatchableWorkSource<ContentEntityObject> workSource, ContentEntityMigrationBatchTask batchTask, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback, org.hibernate.SessionFactory sessionFactory) - Since:
- 9.0
-
-
Method Details
-
doInTransaction
- Specified by:
doInTransaction
in interfaceorg.springframework.transaction.support.TransactionCallback<Integer>
- Returns:
- a count of the number of content entities that needed to be migrated in this batch.
-