This call blocks until receives and/or message listeners in progress have completed.
Stopping a connection has no effect on its ability to send messages. A call to stop on a connection that has already been stopped is ignored.
A call to stop must not return until delivery of messages has paused. This means that a client can rely on the fact that none of its message listeners will be called and that all threads of control waiting for receive calls to return will not return with a message until the connection is restarted. The receive timers for a stopped connection continue to advance, so receives may time out while the connection is stopped.
If message listeners are running when stop is invoked, the stop call must wait until all of them have returned before it may return. While these message listeners are completing, they must have the full services of the connection available to them.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub Stop |
| C# |
|---|
void Stop() |
| Visual C++ |
|---|
void Stop() |
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to stop message delivery due to some internal error. |