Package io.dapr.durabletask
Class OrchestrationStatusQuery
java.lang.Object
io.dapr.durabletask.OrchestrationStatusQuery
Class used for constructing orchestration metadata queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the configured continuation token value ornullif none was configured.Gets the configured minimum orchestration creation time ornullif none was configured.Gets the configured maximum orchestration creation time ornullif none was configured.Gets the configured instance ID prefix filter value ornullif none was configured.intGets the configured maximum number of records that can be returned by the query.Gets the configured runtime status filter ornullif none was configured.Gets the configured task hub names to match ornullif none were configured.booleanGets the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values.setContinuationToken(String continuationToken) Sets the continuation token used to continue paging through orchestration metadata results.setCreatedTimeFrom(Instant createdTimeFrom) Include orchestration instances that were created after the specified instant.setCreatedTimeTo(Instant createdTimeTo) Include orchestration instances that were created before the specified instant.setFetchInputsAndOutputs(boolean fetchInputsAndOutputs) Sets whether to fetch orchestration inputs, outputs, and custom status values.setInstanceIdPrefix(String instanceIdPrefix) Include orchestration metadata records with the specified instance ID prefix.setMaxInstanceCount(int maxInstanceCount) Sets the maximum number of records that can be returned by the query.setRuntimeStatusList(List<OrchestrationRuntimeStatus> runtimeStatusList) Sets the list of runtime status values to use as a filter.setTaskHubNames(List<String> taskHubNames) Include orchestration metadata records that have a matching task hub name.
-
Constructor Details
-
OrchestrationStatusQuery
public OrchestrationStatusQuery()Sole constructor.
-
-
Method Details
-
setRuntimeStatusList
public OrchestrationStatusQuery setRuntimeStatusList(@Nullable List<OrchestrationRuntimeStatus> runtimeStatusList) 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 defaultnullvalue will disable runtime status filtering.- Parameters:
runtimeStatusList- the list of runtime status values to use as a filter- Returns:
- this query object
-
setCreatedTimeFrom
Include orchestration instances that were created after the specified instant.- Parameters:
createdTimeFrom- the minimum orchestration creation time to use as a filter ornullto disable this filter- Returns:
- this query object
-
setCreatedTimeTo
Include orchestration instances that were created before the specified instant.- Parameters:
createdTimeTo- the maximum orchestration creation time to use as a filter ornullto disable this filter- Returns:
- this query object
-
setMaxInstanceCount
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:
maxInstanceCount- the maximum number of orchestration metadata records to return- Returns:
- this query object
-
setTaskHubNames
Include orchestration metadata records that have a matching task hub name.- Parameters:
taskHubNames- the task hub name to match ornullto disable this filter- Returns:
- this query object
-
setContinuationToken
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
OrchestrationStatusQueryResultresult.- Parameters:
continuationToken- the continuation token from the previous query- Returns:
- this query object
-
setInstanceIdPrefix
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:
instanceIdPrefix- the instance ID prefix filter value- Returns:
- this query object
-
setFetchInputsAndOutputs
Sets whether to fetch orchestration inputs, outputs, and custom status values. The default value isfalse.- Parameters:
fetchInputsAndOutputs-trueto fetch orchestration inputs, outputs, and custom status values, otherwisefalse- Returns:
- this query object
-
getRuntimeStatusList
Gets the configured runtime status filter ornullif none was configured.- Returns:
- the configured runtime status filter as a list of values or
nullif none was configured
-
getCreatedTimeFrom
Gets the configured minimum orchestration creation time ornullif none was configured.- Returns:
- the configured minimum orchestration creation time or
nullif none was configured
-
getCreatedTimeTo
Gets the configured maximum orchestration creation time ornullif none was configured.- Returns:
- the configured maximum orchestration creation time or
nullif none was configured
-
getMaxInstanceCount
public int getMaxInstanceCount()Gets the configured maximum number of records that can be returned by the query.- Returns:
- the configured maximum number of records that can be returned by the query
-
getTaskHubNames
Gets the configured task hub names to match ornullif none were configured.- Returns:
- the configured task hub names to match or
nullif none were configured
-
getContinuationToken
Gets the configured continuation token value ornullif none was configured.- Returns:
- the configured continuation token value or
nullif none was configured
-
getInstanceIdPrefix
Gets the configured instance ID prefix filter value ornullif none was configured.- Returns:
- the configured instance ID prefix filter value or
nullif none was configured.
-
isFetchInputsAndOutputs
public boolean isFetchInputsAndOutputs()Gets the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values.- Returns:
- the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values
-