StreamingQueryManager.AwaitAnyTermination Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AwaitAnyTermination() |
Wait until any of the queries on the associated SQLContext has terminated since the creation of the context, or since ResetTerminated() was called. If any query was terminated with an exception, then the exception will be thrown. If a query has terminated, then subsequent calls to AwaitAnyTermination() will either return immediately (if the query was terminated by Stop()), or throw the exception immediately (if the query was terminated with exception). Use ResetTerminated() to clear past terminations and wait for new terminations. In the case where multiple queries have terminated since ResetTerminated() was called, if any query has terminated with exception, then AwaitAnyTermination() will throw any of the exception. For correctly documenting exceptions across multiple queries, users need to stop all of them after any of them terminates with exception, and then check the Exception() for each query. Throws StreamingQueryException on the JVM if any query has terminated with an exception. |
AwaitAnyTermination(Int64) |
Wait until any of the queries on the associated SQLContext has terminated since the creation of the context, or since ResetTerminated() was called. If any query was terminated with an exception, then the exception will be thrown. If a query has terminated, then subsequent calls to AwaitAnyTermination() will either return immediately (if the query was terminated by Stop()), or throw the exception immediately (if the query was terminated with exception). Use ResetTerminated() to clear past terminations and wait for new terminations. In the case where multiple queries have terminated since ResetTerminated() was called, if any query has terminated with exception, then AwaitAnyTermination() will throw any of the exception. For correctly documenting exceptions across multiple queries, users need to stop all of them after any of them terminates with exception, and then check the Exception() for each query. Throws StreamingQueryException on the JVM if any query has terminated with an exception. |
AwaitAnyTermination()
Wait until any of the queries on the associated SQLContext has terminated since the creation of the context, or since ResetTerminated() was called. If any query was terminated with an exception, then the exception will be thrown.
If a query has terminated, then subsequent calls to AwaitAnyTermination() will either return immediately (if the query was terminated by Stop()), or throw the exception immediately (if the query was terminated with exception). Use ResetTerminated() to clear past terminations and wait for new terminations.
In the case where multiple queries have terminated since ResetTerminated() was called, if any query has terminated with exception, then AwaitAnyTermination() will throw any of the exception. For correctly documenting exceptions across multiple queries, users need to stop all of them after any of them terminates with exception, and then check the Exception() for each query.
Throws StreamingQueryException on the JVM if any query has terminated with an exception.
public void AwaitAnyTermination ();
member this.AwaitAnyTermination : unit -> unit
Public Sub AwaitAnyTermination ()
Applies to
AwaitAnyTermination(Int64)
Wait until any of the queries on the associated SQLContext has terminated since the creation of the context, or since ResetTerminated() was called. If any query was terminated with an exception, then the exception will be thrown.
If a query has terminated, then subsequent calls to AwaitAnyTermination() will either return immediately (if the query was terminated by Stop()), or throw the exception immediately (if the query was terminated with exception). Use ResetTerminated() to clear past terminations and wait for new terminations.
In the case where multiple queries have terminated since ResetTerminated() was called, if any query has terminated with exception, then AwaitAnyTermination() will throw any of the exception. For correctly documenting exceptions across multiple queries, users need to stop all of them after any of them terminates with exception, and then check the Exception() for each query.
Throws StreamingQueryException on the JVM if any query has terminated with an exception.
public void AwaitAnyTermination (long timeoutMs);
member this.AwaitAnyTermination : int64 -> unit
Public Sub AwaitAnyTermination (timeoutMs As Long)
Parameters
- timeoutMs
- Int64
Milliseconds to wait for query to terminate. Returns whether the query has terminated or not.