isFailed
The isFailed method returns a boolean value that is true if the table is in a failure state or false if the table is healthy.
Syntax
Parameters
This method takes no arguments.
Returns
A boolean value that is true if the table is in a failure state, or false if the table is healthy.
Example
In this example, we will create two tables: a regular time table, and a time table that will fail after two rows. Then, we use Java's Timer class to define a method that will print the status of the tables after 5 seconds.