Class SetRemovalTimeToHistoricBatchesBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.history.SetRemovalTimeToHistoricBatchesBuilderImpl
- All Implemented Interfaces:
SetRemovalTimeSelectModeForHistoricBatchesBuilder
,SetRemovalTimeToHistoricBatchesBuilder
public class SetRemovalTimeToHistoricBatchesBuilderImpl
extends Object
implements SetRemovalTimeSelectModeForHistoricBatchesBuilder
- Author:
- Tassilo Weidner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected HistoricBatchQuery
protected Date
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabsoluteRemovalTime
(Date removalTime) Sets the removal time to an absolute date.Selects historic batches by the given ids.byQuery
(HistoricBatchQuery query) Selects historic batches by the given query.Calculates the removal time dynamically based on the time to live of the respective batch and the engine's removal time strategy.Sets the removal time tonull
.Sets the removal time asynchronously as batch.getIds()
getMode()
getQuery()
-
Field Details
-
query
-
ids
-
mode
-
removalTime
-
commandExecutor
-
-
Constructor Details
-
SetRemovalTimeToHistoricBatchesBuilderImpl
-
-
Method Details
-
byQuery
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilder
Selects historic batches by the given query.- Specified by:
byQuery
in interfaceSetRemovalTimeToHistoricBatchesBuilder
- Parameters:
query
- to be evaluated.- Returns:
- the builder.
-
byIds
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilder
Selects historic batches by the given ids.- Specified by:
byIds
in interfaceSetRemovalTimeToHistoricBatchesBuilder
- Parameters:
ids
- supposed to be affected.- Returns:
- the builder.
-
absoluteRemovalTime
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilder
Sets the removal time to an absolute date.- Specified by:
absoluteRemovalTime
in interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder
- Parameters:
removalTime
- supposed to be set to historic entities.- Returns:
- the builder.
-
calculatedRemovalTime
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilder
Calculates the removal time dynamically based on the time to live of the respective batch and the engine's removal time strategy.- Specified by:
calculatedRemovalTime
in interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder
- Returns:
- the builder.
-
clearedRemovalTime
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilder
Sets the removal time to
null
.- Specified by:
clearedRemovalTime
in interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder
- Returns:
- the builder.
-
executeAsync
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilder
Sets the removal time asynchronously as batch. The returned batch can be used to track the progress of setting a removal time.- Specified by:
executeAsync
in interfaceSetRemovalTimeToHistoricBatchesBuilder
- Returns:
- the batch which sets the removal time asynchronously.
-
getQuery
-
getIds
-
getRemovalTime
-
getMode
-