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, setWaterMark
public StreamingSubscription(ExchangeService service) throws Exception
Exception
public void unsubscribe() throws Exception
Exception
public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.Exception
public void endUnsubscribe(IAsyncResult asyncResult) throws Exception
asyncResult
- An IAsyncResult that references the asynchronous request.Exception
public ExchangeService getService()
getService
in class SubscriptionBase
protected boolean getUsesWatermark()
getUsesWatermark
in class SubscriptionBase
Copyright © 2012–2015 Microsoft. All rights reserved.