StreamingContext.
stop
Stop the execution of the streams, with option of ensuring all received data has been processed.
Stop the associated SparkContext or not
Stop gracefully by waiting for the processing of all received data to be completed