All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fluxtion.server.dispatch.EventSource Maven / Gradle / Ivy

/*
 * SPDX-FileCopyrightText: © 2024 Gregory Higgins 
 * SPDX-License-Identifier: AGPL-3.0-only
 *
 */

package com.fluxtion.server.dispatch;

import com.fluxtion.runtime.annotations.feature.Experimental;

/**
 * Publishes events to {@link com.fluxtion.server.dispatch.EventToQueuePublisher}. Register an {@link EventSource} instance with {@link EventFlowManager}
 * to receive the target queue via the setEventToQueuePublisher callback method.
 *
 * @param 
 */
@SuppressWarnings("EmptyMethod")
@Experimental
public interface EventSource {

    void subscribe(EventSubscriptionKey eventSourceKey);

    void unSubscribe(EventSubscriptionKey eventSourceKey);

    void setEventToQueuePublisher(EventToQueuePublisher targetQueue);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy