|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.SubscriptionBase
microsoft.exchange.webservices.data.PullSubscription
public final class PullSubscription
Represents a pull subscription.
Constructor Summary | |
---|---|
protected |
PullSubscription(ExchangeService service)
Initializes a new instance. |
Method Summary | |
---|---|
IAsyncResult |
beginGetEvents(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state)
Begins an asynchronous request to obtain a collection of events that occurred on the subscribed folders since the point in time defined by the Watermark property |
IAsyncResult |
beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.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 folders since the point in time defined by the Watermark property.When EndGetEvents succeeds, Watermark is updated. |
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 folders 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. |
Methods inherited from class microsoft.exchange.webservices.data.SubscriptionBase |
---|
getId, getService, getUsesWatermark, getWaterMark, loadFromXml, setId, setWaterMark |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PullSubscription(ExchangeService service) throws java.lang.Exception
service
- the service
java.lang.Exception
- the exceptionMethod Detail |
---|
public GetEventsResults getEvents() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic IAsyncResult beginGetEvents(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state) throws java.lang.Exception
callback
- The AsyncCallback delegatestate
- An object that contains state information for this request
java.lang.Exception
public GetEventsResults endGetEvents(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.state
- An object that contains state information for this request
java.lang.Exception
public void unsubscribe() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic IAsyncResult beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request
java.lang.Exception
public void endUnsubscribe(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
public boolean isMoreEventsAvailable()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |