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

temporalio / sdk-java / #300

12 Aug 2024 11:08PM UTC coverage: 77.722% (+0.03%) from 77.696%
#300

push

github

web-flow
Ad support for updating schedule search attributes (#2168)

Support update SA on a schedule

0 of 14 new or added lines in 2 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

19976 of 25702 relevant lines covered (77.72%)

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/ScheduleUpdate.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 io.temporal.common.SearchAttributes;
24

25
/** An update returned from a schedule updater. */
26
public final class ScheduleUpdate {
27
  private final Schedule schedule;
28
  private final SearchAttributes typedSearchAttributes;
29

30
  /**
31
   * Create a new ScheduleUpdate.
32
   *
33
   * @param schedule schedule to replace the existing schedule with
34
   */
35
  public ScheduleUpdate(Schedule schedule) {
×
36
    this.schedule = schedule;
×
NEW
37
    this.typedSearchAttributes = null;
×
NEW
38
  }
×
39

40
  /**
41
   * Create a new ScheduleUpdate.
42
   *
43
   * @param schedule schedule to replace the existing schedule with
44
   * @param typedSearchAttributes search attributes to replace the existing search attributes with.
45
   *     Returning null will not update the search attributes.
46
   */
NEW
47
  public ScheduleUpdate(Schedule schedule, SearchAttributes typedSearchAttributes) {
×
NEW
48
    this.schedule = schedule;
×
NEW
49
    this.typedSearchAttributes = typedSearchAttributes;
×
UNCOV
50
  }
×
51

52
  /**
53
   * Get the Schedule to update.
54
   *
55
   * @return schedule to update
56
   */
57
  public Schedule getSchedule() {
58
    return schedule;
×
59
  }
60

61
  /**
62
   * Get the search attributes to update.
63
   *
64
   * @return search attributes to update
65
   */
66
  public SearchAttributes getTypedSearchAttributes() {
NEW
67
    return typedSearchAttributes;
×
68
  }
69
}
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

© 2026 Coveralls, Inc