Skip to content
Permalink
Browse files
Add IInstance.isValid() with default true return value
 patch by Jacek Lewandowski; reviewed by Mick Semb Wever for CASSANDRA-17214
  • Loading branch information
jacek-lewandowski authored and michaelsembwever committed Jan 13, 2022
1 parent be0c128 commit 2aea316f85e68b4e4739b61260faf5ed91552d5f
Showing 1 changed file with 8 additions and 1 deletion.
@@ -19,7 +19,6 @@
package org.apache.cassandra.distributed.api;

import java.net.InetSocketAddress;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.Future;
@@ -52,6 +51,14 @@ default Object[][] executeInternal(String query, Object... args)

boolean isShutdown();

/**
* Returns true if we can perform any operation or retrieve information from this instance
*/
default boolean isValid()
{
return true;
}

Future<Void> shutdown();

Future<Void> shutdown(boolean graceful);

0 comments on commit 2aea316

Please sign in to comment.