File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed
cluster-api/src/main/java/io/scalecube/cluster
main/java/io/scalecube/cluster
test/java/io/scalecube/cluster Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,4 @@ public interface Cluster {
141
141
* @return promise which is completed once graceful shutdown is finished.
142
142
*/
143
143
Mono <Void > onShutdown ();
144
-
145
- /**
146
- * Check if cluster instance has been shut down.
147
- *
148
- * @return returns true if cluster instance has been shut down; false otherwise.
149
- */
150
- boolean isShutdown ();
151
144
}
Original file line number Diff line number Diff line change @@ -558,11 +558,6 @@ public Mono<Void> onShutdown() {
558
558
return onShutdown .asMono ();
559
559
}
560
560
561
- @ Override
562
- public boolean isShutdown () {
563
- return onShutdown .asMono ().toFuture ().isDone ();
564
- }
565
-
566
561
private static class SenderAwareTransport implements Transport {
567
562
568
563
private final Transport transport ;
Original file line number Diff line number Diff line change @@ -471,7 +471,6 @@ public void onMembershipEvent(MembershipEvent event) {
471
471
472
472
node2 .shutdown ();
473
473
node2 .onShutdown ().block (TIMEOUT );
474
- assertTrue (node2 .isShutdown ());
475
474
476
475
assertTrue (leavingLatch .await (TIMEOUT .getSeconds (), TimeUnit .SECONDS ));
477
476
assertTrue (removedLatch .await (TIMEOUT .getSeconds (), TimeUnit .SECONDS ));
You can’t perform that action at this time.
0 commit comments