com.yahoo.messagebus.MessageHandler Maven / Gradle / Ivy
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus;
/**
* All classes that wants to handle messages that move through the messagebus need to implement this interface.
* As opposed to the {@link ReplyHandler} which handles replies as they return from the receiver to the sender, this
* interface is intended for handling messages as they travel from the sender to the receiver.
*
* @author Simon Thoresen Hult
*/
public interface MessageHandler {
/**
* This function is called when a message arrives.
*
* @param message The message that arrived.
*/
void handleMessage(Message message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy