Interface SyncEventSubscriptionApiOp

    • Method Detail

      • subscribe

        Subscription subscribe​(ObjectClass objectClass,
                               SyncToken token,
                               Observer<SyncDelta> handler,
                               OperationOptions operationOptions)
        Create a subscription to a given sync topic.
        Parameters:
        objectClass - the object class
        handler - the Observer that will handle emissions and notifications from the Observable
        operationOptions - the operation options
        Returns:
        a Subscription reference with which the Observer can stop receiving items before the Observable has completed
        Throws:
        java.lang.RuntimeException - when the operation failed to create subscription.