I'd like to add a database connection health check to my Dropwizard project but I'm not sure how to test if the database connection is valid with astyanax.
I have two ideas:
- There's a
keyspace.connected()function that I haven't been able to find - Create my own
connected()function that attempts to send a query to test the connection and catches any connection exceptions.