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

temporalio / sdk-java / #207

06 Nov 2023 04:21PM CUT coverage: 77.277% (-0.008%) from 77.285%
#207

push

github

web-flow
Test continue as new with local activities (#1922)

Test continue as new with local activities

18728 of 24235 relevant lines covered (77.28%)

0.77 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/BuildIdReachability.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;
22

23
import io.temporal.api.enums.v1.TaskReachability;
24
import java.util.Collections;
25
import java.util.List;
26
import java.util.Map;
27
import java.util.Set;
28

29
/** Contains information about the reachability of a specific Build ID. */
30
public class BuildIdReachability {
31
  private final Map<String, List<TaskReachability>> taskQueueReachability;
32
  private final Set<String> unretrievedTaskQueues;
33

34
  public BuildIdReachability(
35
      Map<String, List<TaskReachability>> taskQueueReachability,
36
      Set<String> unretrievedTaskQueues) {
×
37
    this.taskQueueReachability = taskQueueReachability;
×
38
    this.unretrievedTaskQueues = unretrievedTaskQueues;
×
39
  }
×
40

41
  /**
42
   * @return A map of Task Queue names to the reachability status of the Build ID on that queue. If
43
   *     the value is an empty list, the Build ID is not reachable on that queue.
44
   */
45
  public Map<String, List<TaskReachability>> getTaskQueueReachability() {
46
    return Collections.unmodifiableMap(taskQueueReachability);
×
47
  }
48

49
  /**
50
   * @return a list of any Task Queues that could not be retrieved because the server limits the
51
   *     number that can be queried at once.
52
   */
53
  public Set<String> getUnretrievedTaskQueues() {
54
    return Collections.unmodifiableSet(unretrievedTaskQueues);
×
55
  }
56
}
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