aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/RemoveDocumentReply.java
blob: ae576c6eb0b6df81d64f107395da5ddba52dc377 (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
34
35
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;

/**
 * @author Simon Thoresen Hult
 */
public class RemoveDocumentReply extends WriteDocumentReply {

    private boolean found = true;

    /**
     * Constructs a new reply with no content.
     */
    public RemoveDocumentReply() {
        super(DocumentProtocol.REPLY_REMOVEDOCUMENT);
    }

    /**
     * Returns whether or not the document was found and removed.
     *
     * @return true if document was found.
     */
    public boolean wasFound() {
        return found;
    }

    /**
     * Set whether or not the document was found and removed.
     *
     * @param found true if the document was found.
     */
    public void setWasFound(boolean found) {
        this.found = found;
    }
}