NewOrchestrationInstanceOptions Class
- java.
lang. Object - com.
microsoft. durabletask. NewOrchestrationInstanceOptions
- com.
public final class NewOrchestrationInstanceOptions
Options for starting a new instance of an orchestration.
Constructor Summary
| Constructor | Description |
|---|---|
| NewOrchestrationInstanceOptions() |
Default constructor for the NewOrchestrationInstanceOptions class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Object |
getInput()
Gets the input of the new orchestration. |
| java.lang.String |
getInstanceId()
Gets the instance ID of the new orchestration. |
| java.time.Instant |
getStartTime()
Gets the configured start time of the new orchestration instance. |
| java.lang.String |
getVersion()
Gets the user-specified version of the new orchestration. |
|
New |
setInput(Object input)
Sets the input of the orchestration to start. |
|
New |
setInstanceId(String instanceId)
Sets the instance ID of the orchestration to start. |
|
New |
setStartTime(Instant startTime)
Sets the start time of the new orchestration instance. |
|
New |
setVersion(String version)
Sets the version of the orchestration to start. |
Methods inherited from java.lang.Object
Constructor Details
NewOrchestrationInstanceOptions
public NewOrchestrationInstanceOptions()
Default constructor for the NewOrchestrationInstanceOptions class.
Method Details
getInput
public Object getInput()
Gets the input of the new orchestration.
Returns:
getInstanceId
public String getInstanceId()
Gets the instance ID of the new orchestration.
Returns:
getStartTime
public Instant getStartTime()
Gets the configured start time of the new orchestration instance.
Returns:
getVersion
public String getVersion()
Gets the user-specified version of the new orchestration.
Returns:
setInput
public NewOrchestrationInstanceOptions setInput(Object input)
Sets the input of the orchestration to start.
There are no restrictions on the type of inputs that can be used except that they must be serializable using the DataConverter that was configured for the DurableTaskClient at creation time.
Parameters:
Returns:
setInstanceId
public NewOrchestrationInstanceOptions setInstanceId(String instanceId)
Sets the instance ID of the orchestration to start.
If no instance ID is configured, the orchestration will be created with a randomly generated instance ID.
Parameters:
Returns:
setStartTime
public NewOrchestrationInstanceOptions setStartTime(Instant startTime)
Sets the start time of the new orchestration instance.
By default, new orchestration instances start executing immediately. This method can be used to start them at a specific time in the future.
Parameters:
Returns:
setVersion
public NewOrchestrationInstanceOptions setVersion(String version)
Sets the version of the orchestration to start.
Parameters:
Returns: