Class PullSubscription

    • Method Detail

      • getEvents

        public GetEventsResults getEvents()
                                   throws Exception
        Obtains a collection of events that occurred on the subscribed folder since the point in time defined by the Watermark property. When GetEvents succeeds, Watermark is updated.
        Returns:
        Returns a collection of events that occurred since the last watermark
        Throws:
        Exception - the exception
      • beginGetEvents

        public IAsyncResult beginGetEvents​(AsyncCallback callback,
                                           Object state)
                                    throws Exception
        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
        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
      • endGetEvents

        public GetEventsResults endGetEvents​(IAsyncResult asyncResult)
                                      throws Exception
        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. When EndGetEvents succeeds, Watermark is updated.
        Parameters:
        asyncResult - An IAsyncResult that references the asynchronous request.
        Returns:
        Returns a collection of events that occurred since the last watermark.
        Throws:
        Exception
      • beginUnsubscribe

        public IAsyncResult beginUnsubscribe​(AsyncCallback callback,
                                             Object state)
                                      throws Exception
        Begins an asynchronous request to unsubscribe from the pull 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 pull subscription.
        Parameters:
        asyncResult - An IAsyncResult that references the asynchronous request.
        Throws:
        Exception
      • isMoreEventsAvailable

        public boolean isMoreEventsAvailable()
        Gets a value indicating whether more events are available on the server. MoreEventsAvailable is undefined (null) until GetEvents is called.
        Returns:
        true, if is more events available