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

net.engio.mbassy.bus.publication.IPublicationCommand Maven / Gradle / Ivy

package net.engio.mbassy.bus.publication;

import net.engio.mbassy.bus.IMessagePublication;

/**
 * A publication command is used as an intermediate object created by a call to the message bus' post method.
 * It encapsulates the message publication flavors provided by the message bus implementation that created the command.
 * Subclasses may extend this interface and add functionality, e.g. different dispatch schemes.
 */
public interface IPublicationCommand {

    /**
     * Execute the message publication immediately. This call blocks until every matching message handler
     * has been invoked.
     */
    IMessagePublication now();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy