blob: 5f90a2206051d0752c94ce372b7e29675e4f8a63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2017 Yahoo Holdings. 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);
}
|