Package org.nuxeo.ecm.core.api.impl
Class DownloadBlobGuard
- java.lang.Object
-
- org.nuxeo.ecm.core.api.impl.DownloadBlobGuard
-
public class DownloadBlobGuard extends Object
A Guard to avoid the current thread within a transaction to download the main blob in the following cases: - when loading a document with a content/length property that is unset - when saving a document the previous version is loaded with the blob if content/length is unset - when performing a fulltext extractor job because content/length has been updated The Guard is removed on transaction commit or rollback. This Guard works only on DBS repository implementation.- Since:
- 2021.8
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<Boolean>
ENABLED
-
Constructor Summary
Constructors Constructor Description DownloadBlobGuard()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
disable()
Disables the guardstatic void
enable()
Enables the guardstatic boolean
isEnable()
Is the guard enabled?
-
-
-
Field Detail
-
ENABLED
protected static final ThreadLocal<Boolean> ENABLED
-
-