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)
SetRemovalTimeToHistoricBatchesBuilder
byQuery
in interface SetRemovalTimeToHistoricBatchesBuilder
query
- to be evaluated.public SetRemovalTimeToHistoricBatchesBuilder byIds(String... ids)
SetRemovalTimeToHistoricBatchesBuilder
byIds
in interface SetRemovalTimeToHistoricBatchesBuilder
ids
- supposed to be affected.public SetRemovalTimeToHistoricBatchesBuilder absoluteRemovalTime(Date removalTime)
SetRemovalTimeSelectModeForHistoricBatchesBuilder
absoluteRemovalTime
in interface SetRemovalTimeSelectModeForHistoricBatchesBuilder
removalTime
- supposed to be set to historic entities.public SetRemovalTimeToHistoricBatchesBuilder calculatedRemovalTime()
SetRemovalTimeSelectModeForHistoricBatchesBuilder
calculatedRemovalTime
in interface SetRemovalTimeSelectModeForHistoricBatchesBuilder
public SetRemovalTimeToHistoricBatchesBuilder clearedRemovalTime()
SetRemovalTimeSelectModeForHistoricBatchesBuilder
Sets the removal time to null
.
clearedRemovalTime
in interface SetRemovalTimeSelectModeForHistoricBatchesBuilder
public Batch executeAsync()
SetRemovalTimeToHistoricBatchesBuilder
executeAsync
in interface SetRemovalTimeToHistoricBatchesBuilder
public HistoricBatchQuery getQuery()
public Date getRemovalTime()
public SetRemovalTimeToHistoricBatchesBuilderImpl.Mode getMode()
Copyright © 2019. All rights reserved.