aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/Result.java
blob: f908fe565fb670c8facb1708608083834f80aa70 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.feed.client;

import java.util.Optional;

/**
 * Result for a document operation which completed normally.
 *
 * @author bjorncs
 * @author jonmv
 */
public interface Result {

    enum Type {
        success,
        conditionNotMet
    }

    Type type();
    DocumentId documentId();
    Optional<String> resultMessage();
    Optional<String> traceMessage();
}