public class SetRemovalTimeToHistoricBatchesBuilderImpl extends Object implements SetRemovalTimeSelectModeForHistoricBatchesBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
SetRemovalTimeToHistoricBatchesBuilderImpl.Mode |
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected List<String> |
ids |
protected SetRemovalTimeToHistoricBatchesBuilderImpl.Mode |
mode |
protected HistoricBatchQuery |
query |
protected Date |
removalTime |
| Constructor and Description |
|---|
SetRemovalTimeToHistoricBatchesBuilderImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
SetRemovalTimeToHistoricBatchesBuilder |
absoluteRemovalTime(Date removalTime)
Sets the removal time to an absolute date.
|
SetRemovalTimeToHistoricBatchesBuilder |
byIds(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 to
null. |
Batch |
executeAsync()
Sets the removal time asynchronously as batch.
|
List<String> |
getIds() |
SetRemovalTimeToHistoricBatchesBuilderImpl.Mode |
getMode() |
HistoricBatchQuery |
getQuery() |
Date |
getRemovalTime() |
protected HistoricBatchQuery query
protected SetRemovalTimeToHistoricBatchesBuilderImpl.Mode mode
protected Date removalTime
protected CommandExecutor commandExecutor
public SetRemovalTimeToHistoricBatchesBuilderImpl(CommandExecutor commandExecutor)
public SetRemovalTimeToHistoricBatchesBuilder byQuery(HistoricBatchQuery query)
SetRemovalTimeToHistoricBatchesBuilderbyQuery in interface SetRemovalTimeToHistoricBatchesBuilderquery - to be evaluated.public SetRemovalTimeToHistoricBatchesBuilder byIds(String... ids)
SetRemovalTimeToHistoricBatchesBuilderbyIds in interface SetRemovalTimeToHistoricBatchesBuilderids - supposed to be affected.public SetRemovalTimeToHistoricBatchesBuilder absoluteRemovalTime(Date removalTime)
SetRemovalTimeSelectModeForHistoricBatchesBuilderabsoluteRemovalTime in interface SetRemovalTimeSelectModeForHistoricBatchesBuilderremovalTime - supposed to be set to historic entities.public SetRemovalTimeToHistoricBatchesBuilder calculatedRemovalTime()
SetRemovalTimeSelectModeForHistoricBatchesBuildercalculatedRemovalTime in interface SetRemovalTimeSelectModeForHistoricBatchesBuilderpublic SetRemovalTimeToHistoricBatchesBuilder clearedRemovalTime()
SetRemovalTimeSelectModeForHistoricBatchesBuilder Sets the removal time to null.
clearedRemovalTime in interface SetRemovalTimeSelectModeForHistoricBatchesBuilderpublic Batch executeAsync()
SetRemovalTimeToHistoricBatchesBuilderexecuteAsync in interface SetRemovalTimeToHistoricBatchesBuilderpublic HistoricBatchQuery getQuery()
public Date getRemovalTime()
public SetRemovalTimeToHistoricBatchesBuilderImpl.Mode getMode()
Copyright © 2022. All rights reserved.