concept isActive() in category spark

appears as: isActive()
Spark in Action, Second Edition

This is an excerpt from Manning's book Spark in Action, Second Edition.

Compared to the previous examples in this chapter, note that you are not using awaitTermination() anymore; it is a blocking operation. You will use a loop to check whether the stream is active, using the isActive() method.