OrchestrationStatusQuery Class
- java.
lang. Object - com.
microsoft. durabletask. OrchestrationStatusQuery
- com.
public final class OrchestrationStatusQuery
Class used for constructing orchestration metadata queries.
Constructor Summary
| Constructor | Description |
|---|---|
| OrchestrationStatusQuery() |
Sole constructor. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getContinuationToken()
Gets the configured continuation token value or |
| 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.lang.String |
getInstanceIdPrefix()
Gets the configured instance ID prefix filter value or |
| int |
getMaxInstanceCount()
Gets the configured maximum number of records that can be returned by the query. |
|
java.util.List<Orchestration |
getRuntimeStatusList()
Gets the configured runtime status filter or |
| java.util.List<java.lang.String> |
getTaskHubNames()
Gets the configured task hub names to match or |
| boolean |
isFetchInputsAndOutputs()
Gets the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values. |
|
Orchestration |
setContinuationToken(String continuationToken)
Sets the continuation token used to continue paging through orchestration metadata results. |
|
Orchestration |
setCreatedTimeFrom(Instant createdTimeFrom)
Include orchestration instances that were created after the specified instant. |
|
Orchestration |
setCreatedTimeTo(Instant createdTimeTo)
Include orchestration instances that were created before the specified instant. |
|
Orchestration |
setFetchInputsAndOutputs(boolean fetchInputsAndOutputs)
Sets whether to fetch orchestration inputs, outputs, and custom status values. |
|
Orchestration |
setInstanceIdPrefix(String instanceIdPrefix)
Include orchestration metadata records with the specified instance ID prefix. |
|
Orchestration |
setMaxInstanceCount(int maxInstanceCount)
Sets the maximum number of records that can be returned by the query. |
|
Orchestration |
setRuntimeStatusList(List<OrchestrationRuntimeStatus> runtimeStatusList)
Sets the list of runtime status values to use as a filter. |
|
Orchestration |
setTaskHubNames(List<String> taskHubNames)
Include orchestration metadata records that have a matching task hub name. |
Methods inherited from java.lang.Object
Constructor Details
OrchestrationStatusQuery
public OrchestrationStatusQuery()
Sole constructor.
Method Details
getContinuationToken
public String getContinuationToken()
Gets the configured continuation token value or null if none was configured.
Returns:
null if none was configuredgetCreatedTimeFrom
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 configuredgetInstanceIdPrefix
public String getInstanceIdPrefix()
Gets the configured instance ID prefix filter value or null if none was configured.
Returns:
null if none was configured.getMaxInstanceCount
public int getMaxInstanceCount()
Gets the configured maximum number of records that can be returned by the query.
Returns:
getRuntimeStatusList
public List
Gets the configured runtime status filter or null if none was configured.
Returns:
null if none was configuredgetTaskHubNames
public List
Gets the configured task hub names to match or null if none were configured.
Returns:
null if none were configuredisFetchInputsAndOutputs
public boolean isFetchInputsAndOutputs()
Gets the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values.
Returns:
setContinuationToken
public OrchestrationStatusQuery setContinuationToken(String continuationToken)
Sets the continuation token used to continue paging through orchestration metadata results.
This should always be the continuation token value from the previous query's OrchestrationStatusQueryResult result.
Parameters:
Returns:
setCreatedTimeFrom
public OrchestrationStatusQuery setCreatedTimeFrom(Instant createdTimeFrom)
Include orchestration instances that were created after the specified instant.
Parameters:
null to disable this
filter
Returns:
setCreatedTimeTo
public OrchestrationStatusQuery setCreatedTimeTo(Instant createdTimeTo)
Include orchestration instances that were created before the specified instant.
Parameters:
null to disable this
filter
Returns:
setFetchInputsAndOutputs
public OrchestrationStatusQuery setFetchInputsAndOutputs(boolean fetchInputsAndOutputs)
Sets whether to fetch orchestration inputs, outputs, and custom status values. The default value is false.
Parameters:
true to fetch orchestration inputs, outputs, and custom status values,
otherwise false
Returns:
setInstanceIdPrefix
public OrchestrationStatusQuery setInstanceIdPrefix(String instanceIdPrefix)
Include orchestration metadata records with the specified instance ID prefix.
For example, if there are three orchestration instances in the metadata store with IDs "Foo", "Bar", and "Baz", specifying a prefix value of "B" will exclude "Foo" since its ID doesn't start with "B".
Parameters:
Returns:
setMaxInstanceCount
public OrchestrationStatusQuery setMaxInstanceCount(int maxInstanceCount)
Sets the maximum number of records that can be returned by the query. The default value is 100.
Requests may return fewer records than the specified page size, even if there are more records. Always check the continuation token to determine whether there are more records.
Parameters:
Returns:
setRuntimeStatusList
public OrchestrationStatusQuery setRuntimeStatusList(List
Sets the list of runtime status values to use as a filter. Only orchestration instances that have a matching runtime status will be returned. The default null value will disable runtime status filtering.
Parameters:
Returns:
setTaskHubNames
public OrchestrationStatusQuery setTaskHubNames(List
Include orchestration metadata records that have a matching task hub name.
Parameters:
null to disable this filter
Returns: