aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/main/java/com/yahoo/messagebus/test/SimpleReply.java
blob: f11e4f065fd1633c79c7888316cc17788224e748 (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
26
27
28
29
30
31
32
33
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.test;

import com.yahoo.messagebus.Reply;
import com.yahoo.text.Utf8String;

/**
 * @author havardpe
 */
public class SimpleReply extends Reply {

    private String value;

    public SimpleReply(String value) {
        this.value = value;
    }

    public int getType() {
        return SimpleProtocol.REPLY;
    }

    public Utf8String getProtocol() {
        return SimpleProtocol.NAME;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}