microsoft.exchange.webservices.data
Class StreamingSubscription

java.lang.Object
  extended by microsoft.exchange.webservices.data.SubscriptionBase
      extended by microsoft.exchange.webservices.data.StreamingSubscription

public final class StreamingSubscription
extends SubscriptionBase

Represents a streaming subscription.


Constructor Summary
protected StreamingSubscription(ExchangeService service)
           
 
Method Summary
 IAsyncResult beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.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.
 
Methods inherited from class microsoft.exchange.webservices.data.SubscriptionBase
getId, getWaterMark, loadFromXml, setId, setWaterMark
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingSubscription

protected StreamingSubscription(ExchangeService service)
                         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

unsubscribe

public void unsubscribe()
                 throws java.lang.Exception
Unsubscribes from the streaming subscription.

Throws:
java.lang.Exception

beginUnsubscribe

public IAsyncResult beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback,
                                     java.lang.Object state)
                              throws java.lang.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:
java.lang.Exception

endUnsubscribe

public void endUnsubscribe(IAsyncResult asyncResult)
                    throws java.lang.Exception
Ends an asynchronous request to unsubscribe from the streaming subscription.

Parameters:
asyncresult - An IAsyncResult that references the asynchronous request.
Throws:
java.lang.Exception

getService

public ExchangeService getService()
Gets the service used to create this subscription.

Overrides:
getService in class SubscriptionBase
Returns:
the session

getUsesWatermark

protected boolean getUsesWatermark()
Gets a value indicating whether this subscription uses watermarks.

Overrides:
getUsesWatermark in class SubscriptionBase