public final class StreamingSubscription extends SubscriptionBase
| Constructor and Description |
|---|
StreamingSubscription(ExchangeService service) |
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
beginUnsubscribe(AsyncCallback callback,
Object state)
Begins an asynchronous request to unsubscribe from the streaming subscription.
|
void |
endUnsubscribe(IAsyncResult asyncResult)
Ends an asynchronous request to unsubscribe from the streaming subscription.
|
ExchangeService |
getService()
Gets the service used to create this subscription.
|
protected boolean |
getUsesWatermark()
Gets a value indicating whether this subscription uses watermarks.
|
void |
unsubscribe()
Unsubscribes from the streaming subscription.
|
getId, getWaterMark, loadFromXml, setId, setWaterMarkpublic StreamingSubscription(ExchangeService service) throws Exception
Exceptionpublic void unsubscribe() throws Exception
Exceptionpublic IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception
callback - The AsyncCallback delegate.state - An object that contains state information for this request.Exceptionpublic void endUnsubscribe(IAsyncResult asyncResult) throws Exception
asyncResult - An IAsyncResult that references the asynchronous request.Exceptionpublic ExchangeService getService()
getService in class SubscriptionBaseprotected boolean getUsesWatermark()
getUsesWatermark in class SubscriptionBaseCopyright © 2012–2015 Microsoft. All rights reserved.