aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/main/java/com/yahoo/messagebus/ReplyHandler.java
blob: 3e66469889d77b70ccd1123e1df58499a19f3121 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. 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 replies that move through the messagebus need to implement this interface. As
 * opposed to the {@link MessageHandler} which handles messages as they travel from the sender to the receiver, this
 * interface is intended for handling replies as they return from the receiver to the sender.
 *
 * @author Simon Thoresen Hult
 */
public interface ReplyHandler {

    /**
     * This function is called when a reply arrives.
     *
     * @param reply The reply that arrived.
     */
    void handleReply(Reply reply);

}