public final class PullSubscription extends SubscriptionBase
| Constructor and Description |
|---|
PullSubscription(ExchangeService service)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
beginGetEvents(AsyncCallback callback,
Object state)
Begins an asynchronous request to obtain a collection of events that occurred on the subscribed
folder since the point in time defined by the Watermark property
|
IAsyncResult |
beginUnsubscribe(AsyncCallback callback,
Object state)
Begins an asynchronous request to unsubscribe from the pull subscription.
|
GetEventsResults |
endGetEvents(IAsyncResult asyncResult)
Ends an asynchronous request to obtain a collection of events that occurred on the subscribed
folder since the point in time defined by the Watermark property.
|
void |
endUnsubscribe(IAsyncResult asyncResult)
Ends an asynchronous request to unsubscribe from the pull subscription.
|
GetEventsResults |
getEvents()
Obtains a collection of events that occurred on the subscribed folder
since the point in time defined by the Watermark property.
|
boolean |
isMoreEventsAvailable()
Gets a value indicating whether more events are available on the server.
|
void |
unsubscribe()
Unsubscribes from the pull subscription.
|
getId, getService, getUsesWatermark, getWaterMark, loadFromXml, setId, setWaterMarkpublic PullSubscription(ExchangeService service) throws Exception
service - the serviceException - the exceptionpublic GetEventsResults getEvents() throws Exception
Exception - the exceptionpublic IAsyncResult beginGetEvents(AsyncCallback callback, Object state) throws Exception
callback - The AsyncCallback delegatestate - An object that contains state information for this requestExceptionpublic GetEventsResults endGetEvents(IAsyncResult asyncResult) throws Exception
asyncResult - An IAsyncResult that references the asynchronous request.Exceptionpublic void unsubscribe() throws Exception
Exception - the exceptionpublic IAsyncResult beginUnsubscribe(AsyncCallback callback, Object state) throws Exception
callback - The AsyncCallback delegate.state - An object that contains state information for this requestExceptionpublic void endUnsubscribe(IAsyncResult asyncResult) throws Exception
asyncResult - An IAsyncResult that references the asynchronous request.Exceptionpublic boolean isMoreEventsAvailable()
Copyright © 2012–2015 Microsoft. All rights reserved.