csip.Publisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of csip-core Show documentation
Show all versions of csip-core Show documentation
The Cloud Services Integration Platform is a SoA implementation to offer a Model-as-a-Service framework, Application Programming Interface, deployment infrastructure, and service implementations for environmental modeling.
/*
* $Id:$
*
* This file is part of the Cloud Services Integration Platform (CSIP),
* a Model-as-a-Service framework, API and application suite.
*
* 2012-2019, Olaf David and others, OMSLab, Colorado State University.
*
* OMSLab licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*/
package csip;
/**
* Publisher
*
* @author od
*/
interface Publisher extends AutoCloseable {
/**
* Publish a message.
*
* @param key the message key
* @param value the message value
*/
void publish(String key, String value);
@Override
default void close() throws Exception {
}
/**
* Default Publisher, doing nothing.
*/
Publisher NONE = new Publisher() {
@Override
public void publish(String key, String value) {
}
};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy