TumblingWindowTrigger Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. Trigger - com.
azure. analytics. synapse. artifacts. models. TumblingWindowTrigger
- com.
- com.
public class TumblingWindowTrigger
extends Trigger
Trigger that schedules pipeline runs for all fixed time interval windows from a start time without gaps and also supports backfill scenarios (when start time is in the past).
Constructor Summary
| Constructor | Description |
|---|---|
| TumblingWindowTrigger() |
Creates an instance of Tumbling |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Tumbling |
fromJson(JsonReader jsonReader)
Reads an instance of Tumbling |
| Object |
getDelay()
Get the delay property: Specifies how long the trigger waits past due time before triggering new run. |
|
List<Dependency |
getDependsOn()
Get the depends |
|
Offset |
getEndTime()
Get the end |
|
Tumbling |
getFrequency()
Get the frequency property: The frequency of the time windows. |
| int |
getInterval()
Get the interval property: The interval of the time windows. |
| int |
getMaxConcurrency()
Get the max |
|
Trigger |
getPipeline()
Get the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is ready. |
|
Retry |
getRetryPolicy()
Get the retry |
|
Offset |
getStartTime()
Get the start |
| String |
getType()
Get the type property: Trigger type. |
|
Tumbling |
setAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the trigger. |
|
Tumbling |
setDelay(Object delay)
Set the delay property: Specifies how long the trigger waits past due time before triggering new run. |
|
Tumbling |
setDependsOn(List<DependencyReference> dependsOn)
Set the depends |
|
Tumbling |
setDescription(String description)
Set the description property: Trigger description. |
|
Tumbling |
setEndTime(OffsetDateTime endTime)
Set the end |
|
Tumbling |
setFrequency(TumblingWindowFrequency frequency)
Set the frequency property: The frequency of the time windows. |
|
Tumbling |
setInterval(int interval)
Set the interval property: The interval of the time windows. |
|
Tumbling |
setMaxConcurrency(int maxConcurrency)
Set the max |
|
Tumbling |
setPipeline(TriggerPipelineReference pipeline)
Set the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is ready. |
|
Tumbling |
setRetryPolicy(RetryPolicy retryPolicy)
Set the retry |
|
Tumbling |
setStartTime(OffsetDateTime startTime)
Set the start |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Trigger
Methods inherited from java.lang.Object
Constructor Details
TumblingWindowTrigger
public TumblingWindowTrigger()
Creates an instance of TumblingWindowTrigger class.
Method Details
fromJson
public static TumblingWindowTrigger fromJson(JsonReader jsonReader)
Reads an instance of TumblingWindowTrigger from the JsonReader.
Parameters:
Returns:
Throws:
getDelay
public Object getDelay()
Get the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
getDependsOn
public List<DependencyReference> getDependsOn()
Get the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported.
Returns:
getEndTime
public OffsetDateTime getEndTime()
Get the endTime property: The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported.
Returns:
getFrequency
public TumblingWindowFrequency getFrequency()
Get the frequency property: The frequency of the time windows.
Returns:
getInterval
public int getInterval()
Get the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes.
Returns:
getMaxConcurrency
public int getMaxConcurrency()
Get the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new run is triggered.
Returns:
getPipeline
public TriggerPipelineReference getPipeline()
Get the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is ready.
Returns:
getRetryPolicy
public RetryPolicy getRetryPolicy()
Get the retryPolicy property: Retry policy that will be applied for failed pipeline runs.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Get the startTime property: The start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported.
Returns:
getType
public String getType()
Get the type property: Trigger type.
Overrides:
TumblingWindowTrigger.getType()Returns:
setAnnotations
public TumblingWindowTrigger setAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the trigger.
Overrides:
TumblingWindowTrigger.setAnnotations(List<Object> annotations)Parameters:
setDelay
public TumblingWindowTrigger setDelay(Object delay)
Set the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
setDependsOn
public TumblingWindowTrigger setDependsOn(List<DependencyReference> dependsOn)
Set the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported.
Parameters:
Returns:
setDescription
public TumblingWindowTrigger setDescription(String description)
Set the description property: Trigger description.
Overrides:
TumblingWindowTrigger.setDescription(String description)Parameters:
setEndTime
public TumblingWindowTrigger setEndTime(OffsetDateTime endTime)
Set the endTime property: The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported.
Parameters:
Returns:
setFrequency
public TumblingWindowTrigger setFrequency(TumblingWindowFrequency frequency)
Set the frequency property: The frequency of the time windows.
Parameters:
Returns:
setInterval
public TumblingWindowTrigger setInterval(int interval)
Set the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes.
Parameters:
Returns:
setMaxConcurrency
public TumblingWindowTrigger setMaxConcurrency(int maxConcurrency)
Set the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new run is triggered.
Parameters:
Returns:
setPipeline
public TumblingWindowTrigger setPipeline(TriggerPipelineReference pipeline)
Set the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is ready.
Parameters:
Returns:
setRetryPolicy
public TumblingWindowTrigger setRetryPolicy(RetryPolicy retryPolicy)
Set the retryPolicy property: Retry policy that will be applied for failed pipeline runs.
Parameters:
Returns:
setStartTime
public TumblingWindowTrigger setStartTime(OffsetDateTime startTime)
Set the startTime property: The start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TumblingWindowTrigger.toJson(JsonWriter jsonWriter)Parameters:
Throws: