Skip to content

Commit 841b7cf

Browse files
Use base client
1 parent da48519 commit 841b7cf

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

temporal-sdk/src/test/java/io/temporal/workflow/nexus/PerEndpointEncryptionClientInterceptor.java

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io.temporal.common.interceptors.WorkflowClientCallsInterceptor;
99
import io.temporal.common.interceptors.WorkflowClientCallsInterceptorBase;
1010
import io.temporal.common.interceptors.WorkflowClientInterceptor;
11+
import io.temporal.common.interceptors.WorkflowClientInterceptorBase;
1112
import io.temporal.nexus.Nexus;
1213
import java.util.Optional;
1314

@@ -19,7 +20,7 @@
1920
* thread and sets the codec's thread-local key, ensuring the async workflow result is encrypted
2021
* with the correct per-endpoint key.
2122
*/
22-
public class PerEndpointEncryptionClientInterceptor implements WorkflowClientInterceptor {
23+
public class PerEndpointEncryptionClientInterceptor extends WorkflowClientInterceptorBase {
2324

2425
static final String ENDPOINT_HEADER_KEY = "x-encryption-endpoint";
2526

@@ -43,23 +44,4 @@ public WorkflowStartOutput start(WorkflowStartInput input) {
4344
}
4445
};
4546
}
46-
47-
@Override
48-
@Deprecated
49-
public WorkflowStub newUntypedWorkflowStub(
50-
String workflowType, WorkflowOptions options, WorkflowStub next) {
51-
return next;
52-
}
53-
54-
@Override
55-
@Deprecated
56-
public WorkflowStub newUntypedWorkflowStub(
57-
WorkflowExecution execution, Optional<String> workflowType, WorkflowStub next) {
58-
return next;
59-
}
60-
61-
@Override
62-
public ActivityCompletionClient newActivityCompletionClient(ActivityCompletionClient next) {
63-
return next;
64-
}
6547
}

0 commit comments

Comments
 (0)