public class CassandraShutDownHook extends Object
CassandraShutDownHook shutdownHook = new CassandraShutDownHook();
Session session = CassandraEmbeddedServerBuilder.builder()
.withShutdownHook(shutdownHook)
...
.buildNativeSession();
...
shutdownHook.shutdownNow();
| Constructor and Description |
|---|
CassandraShutDownHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
shutDownNow()
Trigger the shutdown of:
the embedded Cassandra server
the associated Cluster object
the associated Session object
|
public void shutDownNow()
throws InterruptedException
InterruptedExceptionCopyright © 2012-2021. All Rights Reserved.