File tree 2 files changed +7
-2
lines changed
src/main/java/io/armadaproject
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<groupId >io.armadaproject</groupId >
7
7
<artifactId >java-client</artifactId >
8
- <version >0.0.1 </version >
8
+ <version >0.0.2 </version >
9
9
<packaging >jar</packaging >
10
10
<description >Java client library for the Armada project</description >
11
11
<name >java-client</name >
Original file line number Diff line number Diff line change 24
24
import io .grpc .stub .MetadataUtils ;
25
25
import java .util .Iterator ;
26
26
27
- public class ArmadaClient {
27
+ public class ArmadaClient implements AutoCloseable {
28
28
29
29
private final ManagedChannel channel ;
30
30
@@ -84,4 +84,9 @@ public JobStatusResponse getJobStatus(JobStatusRequest jobStatusRequest) {
84
84
return jobsBlockingStub .getJobStatus (jobStatusRequest );
85
85
}
86
86
87
+ @ Override
88
+ public void close () throws Exception {
89
+ channel .shutdown ();
90
+ }
91
+
87
92
}
You can’t perform that action at this time.
0 commit comments