public interface Subscription
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Marks this subscription as inactive, so that the query no longer receives results
|
java.lang.String |
getId() |
boolean |
isActive() |
boolean |
renew(int ttl)
Renews the subscription for another ttl milliseconds (or indefinitely, if ttl=0),
provided the renewal operation is accepted by the query engine.
|
java.lang.String getId()
boolean isActive()
StreamProcessor
(occupying resources and potentially receiving and handling query results)void cancel()
throws java.io.IOException
java.io.IOException - if there is a problem communicating with this query engine
(for example, if there are network operations involved)boolean renew(int ttl)
throws java.io.IOException
ttl - the new time-to-live in seconds, or 0 for infinite time-to-livejava.io.IOException - if there is a problem communicating with this query engine
(for example, if there are network operations involved)Copyright © 2016. All Rights Reserved.