Made some classes private[stremaing] and deprecated a method in JavaStreamingContext.