Class SetRemovalTimeToHistoricBatchesBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.SetRemovalTimeToHistoricBatchesBuilderImpl
-
- All Implemented Interfaces:
SetRemovalTimeSelectModeForHistoricBatchesBuilder,SetRemovalTimeToHistoricBatchesBuilder
public class SetRemovalTimeToHistoricBatchesBuilderImpl extends java.lang.Object implements SetRemovalTimeSelectModeForHistoricBatchesBuilder
- Author:
- Tassilo Weidner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetRemovalTimeToHistoricBatchesBuilderImpl.Mode
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.util.List<java.lang.String>idsprotected SetRemovalTimeToHistoricBatchesBuilderImpl.Modemodeprotected HistoricBatchQueryqueryprotected java.util.DateremovalTime
-
Constructor Summary
Constructors Constructor Description SetRemovalTimeToHistoricBatchesBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetRemovalTimeToHistoricBatchesBuilderabsoluteRemovalTime(java.util.Date removalTime)Sets the removal time to an absolute date.SetRemovalTimeToHistoricBatchesBuilderbyIds(java.lang.String... ids)Selects historic batches by the given ids.SetRemovalTimeToHistoricBatchesBuilderbyQuery(HistoricBatchQuery query)Selects historic batches by the given query.SetRemovalTimeToHistoricBatchesBuildercalculatedRemovalTime()Calculates the removal time dynamically based on the time to live of the respective batch and the engine's removal time strategy.SetRemovalTimeToHistoricBatchesBuilderclearedRemovalTime()Sets the removal time tonull.BatchexecuteAsync()Sets the removal time asynchronously as batch.java.util.List<java.lang.String>getIds()SetRemovalTimeToHistoricBatchesBuilderImpl.ModegetMode()HistoricBatchQuerygetQuery()java.util.DategetRemovalTime()
-
-
-
Field Detail
-
query
protected HistoricBatchQuery query
-
ids
protected java.util.List<java.lang.String> ids
-
mode
protected SetRemovalTimeToHistoricBatchesBuilderImpl.Mode mode
-
removalTime
protected java.util.Date removalTime
-
commandExecutor
protected CommandExecutor commandExecutor
-
-
Constructor Detail
-
SetRemovalTimeToHistoricBatchesBuilderImpl
public SetRemovalTimeToHistoricBatchesBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
byQuery
public SetRemovalTimeToHistoricBatchesBuilder byQuery(HistoricBatchQuery query)
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilderSelects historic batches by the given query.- Specified by:
byQueryin interfaceSetRemovalTimeToHistoricBatchesBuilder- Parameters:
query- to be evaluated.- Returns:
- the builder.
-
byIds
public SetRemovalTimeToHistoricBatchesBuilder byIds(java.lang.String... ids)
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilderSelects historic batches by the given ids.- Specified by:
byIdsin interfaceSetRemovalTimeToHistoricBatchesBuilder- Parameters:
ids- supposed to be affected.- Returns:
- the builder.
-
absoluteRemovalTime
public SetRemovalTimeToHistoricBatchesBuilder absoluteRemovalTime(java.util.Date removalTime)
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilderSets the removal time to an absolute date.- Specified by:
absoluteRemovalTimein interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder- Parameters:
removalTime- supposed to be set to historic entities.- Returns:
- the builder.
-
calculatedRemovalTime
public SetRemovalTimeToHistoricBatchesBuilder calculatedRemovalTime()
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilderCalculates the removal time dynamically based on the time to live of the respective batch and the engine's removal time strategy.- Specified by:
calculatedRemovalTimein interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder- Returns:
- the builder.
-
clearedRemovalTime
public SetRemovalTimeToHistoricBatchesBuilder clearedRemovalTime()
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilderSets the removal time to
null.- Specified by:
clearedRemovalTimein interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder- Returns:
- the builder.
-
executeAsync
public Batch executeAsync()
Description copied from interface:SetRemovalTimeToHistoricBatchesBuilderSets the removal time asynchronously as batch. The returned batch can be used to track the progress of setting a removal time.- Specified by:
executeAsyncin interfaceSetRemovalTimeToHistoricBatchesBuilder- Returns:
- the batch which sets the removal time asynchronously.
-
getQuery
public HistoricBatchQuery getQuery()
-
getIds
public java.util.List<java.lang.String> getIds()
-
getRemovalTime
public java.util.Date getRemovalTime()
-
getMode
public SetRemovalTimeToHistoricBatchesBuilderImpl.Mode getMode()
-
-