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 class
SetRemovalTimeToHistoricBatchesBuilderImpl.Mode
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected java.util.List<java.lang.String>
ids
protected SetRemovalTimeToHistoricBatchesBuilderImpl.Mode
mode
protected HistoricBatchQuery
query
protected java.util.Date
removalTime
-
Constructor Summary
Constructors Constructor Description SetRemovalTimeToHistoricBatchesBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetRemovalTimeToHistoricBatchesBuilder
absoluteRemovalTime(java.util.Date removalTime)
Sets the removal time to an absolute date.SetRemovalTimeToHistoricBatchesBuilder
byIds(java.lang.String... ids)
Selects historic batches by the given ids.SetRemovalTimeToHistoricBatchesBuilder
byQuery(HistoricBatchQuery query)
Selects historic batches by the given query.SetRemovalTimeToHistoricBatchesBuilder
calculatedRemovalTime()
Calculates the removal time dynamically based on the time to live of the respective batch and the engine's removal time strategy.SetRemovalTimeToHistoricBatchesBuilder
clearedRemovalTime()
Sets the removal time tonull
.Batch
executeAsync()
Sets the removal time asynchronously as batch.java.util.List<java.lang.String>
getIds()
SetRemovalTimeToHistoricBatchesBuilderImpl.Mode
getMode()
HistoricBatchQuery
getQuery()
java.util.Date
getRemovalTime()
-
-
-
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:SetRemovalTimeToHistoricBatchesBuilder
Selects historic batches by the given query.- Specified by:
byQuery
in interfaceSetRemovalTimeToHistoricBatchesBuilder
- Parameters:
query
- to be evaluated.- Returns:
- the builder.
-
byIds
public SetRemovalTimeToHistoricBatchesBuilder byIds(java.lang.String... ids)
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
public SetRemovalTimeToHistoricBatchesBuilder absoluteRemovalTime(java.util.Date removalTime)
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
public SetRemovalTimeToHistoricBatchesBuilder 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
public SetRemovalTimeToHistoricBatchesBuilder clearedRemovalTime()
Description copied from interface:SetRemovalTimeSelectModeForHistoricBatchesBuilder
Sets the removal time to
null
.- Specified by:
clearedRemovalTime
in interfaceSetRemovalTimeSelectModeForHistoricBatchesBuilder
- Returns:
- the builder.
-
executeAsync
public Batch 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
public HistoricBatchQuery getQuery()
-
getIds
public java.util.List<java.lang.String> getIds()
-
getRemovalTime
public java.util.Date getRemovalTime()
-
getMode
public SetRemovalTimeToHistoricBatchesBuilderImpl.Mode getMode()
-
-