PurgeInstanceCriteria Class
- java.
lang. Object - com.
microsoft. durabletask. PurgeInstanceCriteria
- com.
public final class PurgeInstanceCriteria
Class used for constructing orchestration instance purge selection criteria.
Constructor Summary
| Constructor | Description |
|---|---|
| PurgeInstanceCriteria() |
Creates a new, default instance of the |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.time.Instant |
getCreatedTimeFrom()
Gets the configured minimum orchestration creation time or |
| java.time.Instant |
getCreatedTimeTo()
Gets the configured maximum orchestration creation time or |
|
java.util.List<Orchestration |
getRuntimeStatusList()
Gets the configured runtime status selection criteria. |
| java.time.Duration |
getTimeout()
Gets the configured timeout duration or |
|
Purge |
setCreatedTimeFrom(Instant createdTimeFrom)
Purge orchestration instances that were created after the specified instant. |
|
Purge |
setCreatedTimeTo(Instant createdTimeTo)
Purge orchestration instances that were created before the specified instant. |
|
Purge |
setRuntimeStatusList(List<OrchestrationRuntimeStatus> runtimeStatusList)
Sets the list of runtime status values to use as a selection criteria. |
|
Purge |
setTimeout(Duration timeout)
Sets a timeout duration for the purge operation. |
Methods inherited from java.lang.Object
Constructor Details
PurgeInstanceCriteria
public PurgeInstanceCriteria()
Creates a new, default instance of the PurgeInstanceCriteria class.
Method Details
getCreatedTimeFrom
public Instant getCreatedTimeFrom()
Gets the configured minimum orchestration creation time or null if none was configured.
Returns:
null if none was configuredgetCreatedTimeTo
public Instant getCreatedTimeTo()
Gets the configured maximum orchestration creation time or null if none was configured.
Returns:
null if none was configuredgetRuntimeStatusList
public List
Gets the configured runtime status selection criteria.
Returns:
getTimeout
public Duration getTimeout()
Gets the configured timeout duration or null if none was configured.
Returns:
setCreatedTimeFrom
public PurgeInstanceCriteria setCreatedTimeFrom(Instant createdTimeFrom)
Purge orchestration instances that were created after the specified instant.
Parameters:
null to
disable this selection criteria
Returns:
setCreatedTimeTo
public PurgeInstanceCriteria setCreatedTimeTo(Instant createdTimeTo)
Purge orchestration instances that were created before the specified instant.
Parameters:
null to
disable this selection criteria
Returns:
setRuntimeStatusList
public PurgeInstanceCriteria setRuntimeStatusList(List
Sets the list of runtime status values to use as a selection criteria. Only orchestration instances that have a matching runtime status will be purged. An empty list is the same as selecting for all runtime status values.
Parameters:
Returns:
setTimeout
public PurgeInstanceCriteria setTimeout(Duration timeout)
Sets a timeout duration for the purge operation. Setting to null will reset the timeout to be the default value.
Parameters:
Returns: