Package com.microsoft.durabletask
Class OrchestrationStatusQuery
- java.lang.Object
-
- com.microsoft.durabletask.OrchestrationStatusQuery
-
public final class OrchestrationStatusQuery extends java.lang.ObjectClass used for constructing orchestration metadata queries.
-
-
Constructor Summary
Constructors Constructor Description OrchestrationStatusQuery()Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContinuationToken()Gets the configured continuation token value ornullif none was configured.java.time.InstantgetCreatedTimeFrom()Gets the configured minimum orchestration creation time ornullif none was configured.java.time.InstantgetCreatedTimeTo()Gets the configured maximum orchestration creation time ornullif none was configured.java.lang.StringgetInstanceIdPrefix()Gets the configured instance ID prefix filter value ornullif none was configured.intgetMaxInstanceCount()Gets the configured maximum number of records that can be returned by the query.java.util.List<OrchestrationRuntimeStatus>getRuntimeStatusList()Gets the configured runtime status filter ornullif none was configured.java.util.List<java.lang.String>getTaskHubNames()Gets the configured task hub names to match ornullif none were configured.booleanisFetchInputsAndOutputs()Gets the configured value that determines whether to fetch orchestration inputs, outputs, and custom status values.OrchestrationStatusQuerysetContinuationToken(java.lang.String continuationToken)Sets the continuation token used to continue paging through orchestration metadata results.OrchestrationStatusQuerysetCreatedTimeFrom(java.time.Instant createdTimeFrom)Include orchestration instances that were created after the specified instant.OrchestrationStatusQuerysetCreatedTimeTo(java.time.Instant createdTimeTo)Include orchestration instances that were created before the specified instant.OrchestrationStatusQuerysetFetchInputsAndOutputs(boolean fetchInputsAndOutputs)Sets whether to fetch orchestration inputs, outputs, and custom status values.OrchestrationStatusQuerysetInstanceIdPrefix(java.lang.String instanceIdPrefix)Include orchestration metadata records with the specified instance ID prefix.OrchestrationStatusQuerysetMaxInstanceCount(int maxInstanceCount)Sets the maximum number of records that can be returned by the query.OrchestrationStatusQuerysetRuntimeStatusList(java.util.List<OrchestrationRuntimeStatus> runtimeStatusList)Sets the list of runtime status values to use as a filter.OrchestrationStatusQuerysetTaskHubNames(java.util.List<java.lang.String> taskHubNames)Include orchestration metadata records that have a matching task hub name.
-
-
-
Method Detail
-
setRuntimeStatusList
public OrchestrationStatusQuery setRuntimeStatusList(@Nullable java.util.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
public OrchestrationStatusQuery setCreatedTimeFrom(@Nullable java.time.Instant createdTimeFrom)
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
public OrchestrationStatusQuery setCreatedTimeTo(@Nullable java.time.Instant createdTimeTo)
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
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:
maxInstanceCount- the maximum number of orchestration metadata records to return- Returns:
- this query object
-
setTaskHubNames
public OrchestrationStatusQuery setTaskHubNames(@Nullable java.util.List<java.lang.String> taskHubNames)
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
public OrchestrationStatusQuery setContinuationToken(@Nullable java.lang.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
OrchestrationStatusQueryResultresult.- Parameters:
continuationToken- the continuation token from the previous query- Returns:
- this query object
-
setInstanceIdPrefix
public OrchestrationStatusQuery setInstanceIdPrefix(@Nullable java.lang.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:
instanceIdPrefix- the instance ID prefix filter value- Returns:
- this query object
-
setFetchInputsAndOutputs
public OrchestrationStatusQuery setFetchInputsAndOutputs(boolean fetchInputsAndOutputs)
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
public java.util.List<OrchestrationRuntimeStatus> 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
@Nullable public java.time.Instant 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
@Nullable public java.time.Instant 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
public java.util.List<java.lang.String> 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
@Nullable public java.lang.String getContinuationToken()
Gets the configured continuation token value ornullif none was configured.- Returns:
- the configured continuation token value or
nullif none was configured
-
getInstanceIdPrefix
@Nullable public java.lang.String 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
-
-