Class TransientStoreWork
java.lang.Object
org.nuxeo.ecm.core.work.AbstractWork
org.nuxeo.ecm.core.transientstore.work.TransientStoreWork
- All Implemented Interfaces:
Serializable
,Work
- Direct Known Subclasses:
AbstractRenditionBuilderWork
,BlobListZipWork
,ConversionWork
,CSVImporterWork
,PermissionsPurgeWork
A work allowing to store a result in the
TransientStore
.- Since:
- 7.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.work.api.Work
Work.Progress, Work.State
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.work.AbstractWork
callerThread, completionTime, docId, docIds, FAILURE_EXCEPTION, FAILURE_MSG, GLOBAL_DLQ_COUNT_REGISTRY_NAME, id, isTree, loginContext, originatingUsername, progress, RANDOM, repositoryName, schedulePath, schedulingTime, session, startTime, state, status, suspended, suspending, traceContext, WORK_FAILED_EVENT, WORK_INSTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
static String
static boolean
containsBlobHolder
(String key) Returns true if aBlobHolder
is stored for the givenkey
.static BlobHolder
getBlobHolder
(String key) Returns aBlobHolder
representing the entry with the givenkey
in the transient store used by theTransientStoreWork
or null if the entry doesn't exist.protected static TransientStore
getStore()
boolean
Returns true if a work with a givenWork.getId()
should always produce the same result.static void
putBlobHolder
(String key, BlobHolder bh) Stores the givenBlobHolder
as an entry with the givenkey
in the transient store used by theTransientStoreWork
.protected void
static void
removeBlobHolder
(String key) Methods inherited from class org.nuxeo.ecm.core.work.AbstractWork
appendWorkToDeadLetterQueue, buildWorkFailureEventProps, cleanUp, closeSession, commitOrRollbackTransaction, equals, getCategory, getCompletionTime, getDocument, getDocuments, getId, getOriginatingUsername, getPartitionKey, getProgress, getRetryCount, getSchedulePath, getSchedulingTime, getSpanFromContext, getStartTime, getStatus, getWorkInstanceState, hashCode, isDocumentTree, isSuspending, isWorkInstanceSuspended, newDocumentLocation, openSystemSession, openUserSession, run, runWorkWithTransaction, setCompletionTime, setDocument, setDocument, setDocuments, setOriginatingUsername, setProgress, setSchedulePath, setStartTime, setStatus, setWorkInstanceState, setWorkInstanceSuspending, startTransaction, suspended, toString, work, workFailed
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.work.api.Work
getTitle, isCoalescing, isGroupJoin, onGroupJoinCompletion
-
Field Details
-
STORE_NAME
- See Also:
-
KEY_SUFFIX
- See Also:
-
entryKey
-
-
Constructor Details
-
TransientStoreWork
public TransientStoreWork() -
TransientStoreWork
-
-
Method Details
-
computeEntryKey
- Since:
- 8.4
-
putBlobHolder
Stores the givenBlobHolder
as an entry with the givenkey
in the transient store used by theTransientStoreWork
. -
getBlobHolder
Returns aBlobHolder
representing the entry with the givenkey
in the transient store used by theTransientStoreWork
or null if the entry doesn't exist. -
containsBlobHolder
Returns true if aBlobHolder
is stored for the givenkey
.- Since:
- 8.3
-
removeBlobHolder
-
getStore
-
computeEntryKey
protected void computeEntryKey() -
putBlobHolder
-
getEntryKey
-
isIdempotent
public boolean isIdempotent()Description copied from interface:Work
Returns true if a work with a givenWork.getId()
should always produce the same result. The WorkManager implementation can safely skip duplicate executions of idempotent work.
-