This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

public interface EventingService extends NotificationService {

    /**
     * Retrieves subscription manager.
     *
     * @return an instance of the subscription manager associated with the internal event source.
     */
    public SubscriptionManager getSubscriptionManager() throws EventException;

    /**
     * Retrieves remote subscription manager.
     *
     * @param userName the user name used to connect to the remote registry.
     * @param remoteURL the URL of the remote registry.
     * @return an instance of the subscription manager associated with the remote event source.
     */
    public SubscriptionManager getSubscriptionManager(String userName, String remoteURL)throws EventException;

    /**
     * Retrieves the URL of the associated subscription manager.
     *
     * @return URL of the associated subscription manager.
     */
    public String getSubscriptionManagerUrl();

    /**
     * Creates a subscription.
     *
     * @param subscription subscription object to add.
     * @return unique identifier corresponding to the subscription made.
     */
    public String subscribe(Subscription subscription);

    /**
     * Creates a remote subscription.
     *
     * @param subscription subscription object to add.
     * @param userName the user name used to connect to the remote registry.
     * @param remoteURL the URL of the remote registry.
     * @return unique identifier corresponding to the subscription made.
     */
    public String subscribe(Subscription subscription, String userName, String remoteURL);

    /**
     * Retrieves the subscription corresponding to the given unique identifier.
     *
     * @param id unique identifier.
     * @return the corresponding subscription.
     */
    public Subscription getSubscription(String id);

    /**
     * Retrieves the remote subscription corresponding to the given unique identifier.
     *
     * @param id unique identifier.
     * @param userName the user name used to connect to the remote registry.
     * @param remoteURL the URL of the remote registry.
     * @return the corresponding subscription.
     */
    public Subscription getSubscription(String id, String userName, String remoteURL);

    /**
     * Remove subscription corresponding to the given unique identifier.
     *
     * @param id unique identifier.
     * @return the status of the operation.
     */
    public boolean unsubscribe(String id);

    /**
     * Remove subscription corresponding to the given unique identifier.
     *
     * @param id unique identifier.
     * @param userName the user name used to connect to the remote registry.
     * @param remoteURL the URL of the remote registry.
     * @return the status of the operation.
     */
    public boolean unsubscribe(String id, String userName, String remoteURL);
}


  • No labels