Class StreamingSubscription
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.SubscriptionBase
-
- microsoft.exchange.webservices.data.notification.StreamingSubscription
-
public final class StreamingSubscription extends SubscriptionBase
Represents a streaming subscription.
-
-
Constructor Summary
Constructors Constructor Description StreamingSubscription(ExchangeService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResultbeginUnsubscribe(AsyncCallback callback, Object state)Begins an asynchronous request to unsubscribe from the streaming subscription.voidendUnsubscribe(IAsyncResult asyncResult)Ends an asynchronous request to unsubscribe from the streaming subscription.ExchangeServicegetService()Gets the service used to create this subscription.protected booleangetUsesWatermark()Gets a value indicating whether this subscription uses watermarks.voidunsubscribe()Unsubscribes from the streaming subscription.-
Methods inherited from class microsoft.exchange.webservices.data.notification.SubscriptionBase
getId, getWaterMark, loadFromXml, setId, setWaterMark
-
-
-
-
Constructor Detail
-
StreamingSubscription
public StreamingSubscription(ExchangeService service) throws Exception
- Throws:
Exception
-
-
Method Detail
-
unsubscribe
public void unsubscribe() throws Exception
Unsubscribes from the streaming subscription.- Throws:
Exception
-
beginUnsubscribe
public IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception
Begins an asynchronous request to unsubscribe from the streaming subscription.- Parameters:
callback- The AsyncCallback delegate.state- An object that contains state information for this request.- Returns:
- An IAsyncResult that references the asynchronous request.
- Throws:
Exception
-
endUnsubscribe
public void endUnsubscribe(IAsyncResult asyncResult) throws Exception
Ends an asynchronous request to unsubscribe from the streaming subscription.- Parameters:
asyncResult- An IAsyncResult that references the asynchronous request.- Throws:
Exception
-
getService
public ExchangeService getService()
Gets the service used to create this subscription.- Overrides:
getServicein classSubscriptionBase- Returns:
- the session
-
getUsesWatermark
protected boolean getUsesWatermark()
Gets a value indicating whether this subscription uses watermarks.- Overrides:
getUsesWatermarkin classSubscriptionBase
-
-