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

temporalio / sdk-java / #291

30 Jul 2024 10:28PM UTC coverage: 77.576% (-0.08%) from 77.656%
#291

push

github

web-flow
Ensure shutdown of LA slot queue isn't swallowed (#2161)

4 of 4 new or added lines in 2 files covered. (100.0%)

22 existing lines in 7 files now uncovered.

19716 of 25415 relevant lines covered (77.58%)

0.78 hits per line

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

88.89
/temporal-sdk/src/main/java/io/temporal/internal/worker/LocalActivityAttemptTask.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.internal.worker;
22

23
import io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse;
24
import java.util.concurrent.ScheduledFuture;
25
import javax.annotation.Nonnull;
26
import javax.annotation.Nullable;
27

28
class LocalActivityAttemptTask {
29
  private final @Nonnull LocalActivityExecutionContext executionContext;
30
  private final @Nonnull PollActivityTaskQueueResponse.Builder attemptTask;
31
  private final @Nullable ScheduledFuture<?> scheduleToStartFuture;
32

33
  public LocalActivityAttemptTask(
34
      @Nonnull LocalActivityExecutionContext executionContext,
35
      @Nonnull PollActivityTaskQueueResponse.Builder attemptTask,
36
      @Nullable ScheduledFuture<?> scheduleToStartFuture) {
1✔
37
    this.executionContext = executionContext;
1✔
38
    this.attemptTask = attemptTask;
1✔
39
    this.scheduleToStartFuture = scheduleToStartFuture;
1✔
40
  }
1✔
41

42
  @Nonnull
43
  public LocalActivityExecutionContext getExecutionContext() {
44
    return executionContext;
1✔
45
  }
46

47
  public String getActivityId() {
UNCOV
48
    return executionContext.getActivityId();
×
49
  }
50

51
  @Nonnull
52
  public PollActivityTaskQueueResponse.Builder getAttemptTask() {
53
    return attemptTask;
1✔
54
  }
55

56
  @Nullable
57
  public ScheduledFuture<?> getScheduleToStartFuture() {
58
    return scheduleToStartFuture;
1✔
59
  }
60
}
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