• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

temporalio / sdk-java / #174

pending completion
#174

push

github-actions

web-flow
Add schedules API (#1776)

Add schedules API

1143 of 1143 new or added lines in 35 files covered. (100.0%)

18101 of 23284 relevant lines covered (77.74%)

0.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/temporal-sdk/src/main/java/io/temporal/client/schedules/ScheduleListActionStartWorkflow.java
1
/*
2
 * Copyright (C) 2022 Temporal Technologies, Inc. All Rights Reserved.
3
 *
4
 * Copyright (C) 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
 *
6
 * Modifications copyright (C) 2017 Uber Technologies, Inc.
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this material except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 *   http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20

21
package io.temporal.client.schedules;
22

23
import java.util.Objects;
24

25
/** Action to start a workflow on a listed schedule. */
26
public final class ScheduleListActionStartWorkflow extends ScheduleListAction {
27
  private final String workflow;
28

29
  public ScheduleListActionStartWorkflow(String workflow) {
×
30
    this.workflow = workflow;
×
31
  }
×
32

33
  /**
34
   * Get the scheduled workflow type name.
35
   *
36
   * @return Workflow type name
37
   */
38
  public String getWorkflow() {
39
    return workflow;
×
40
  }
41

42
  @Override
43
  public boolean equals(Object o) {
44
    if (this == o) return true;
×
45
    if (o == null || getClass() != o.getClass()) return false;
×
46
    ScheduleListActionStartWorkflow that = (ScheduleListActionStartWorkflow) o;
×
47
    return Objects.equals(workflow, that.workflow);
×
48
  }
49

50
  @Override
51
  public int hashCode() {
52
    return Objects.hash(workflow);
×
53
  }
54

55
  @Override
56
  public String toString() {
57
    return "ScheduleListActionStartWorkflow{" + "workflow='" + workflow + '\'' + '}';
×
58
  }
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc