aboutsummaryrefslogtreecommitdiffstats
path: root/container-messagebus/src/main/java/com/yahoo/messagebus/jdisc/MbusResponse.java
blob: efc646f57b918396156ccf2dfc867f8fb5e3b390 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.jdisc;

import com.yahoo.jdisc.Response;
import com.yahoo.messagebus.Reply;

/**
 * @author Simon Thoresen Hult
 */
public class MbusResponse extends Response {

    private final Reply reply;

    public MbusResponse(int status, Reply reply) {
        super(status);
        if (reply == null) {
            throw new NullPointerException();
        }
        this.reply = reply;
    }

    public Reply getReply() {
        return reply;
    }
}