aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/processing/response/Data.java
blob: babd4ff45c0155cc62343357eaf6757c8f82c095 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.processing.response;

import com.yahoo.component.provider.ListenableFreezable;
import com.yahoo.processing.Request;

/**
 * A data item created due to a processing request.
 * <p>
 * If a data item is <i>frozen</i> it is illegal to make further changes to its payload or referenced request.
 *
 * @author bratseth
 */
// TODO: Have DataList implement this instead, probably (should be a safe change in practise)
public interface Data extends ListenableFreezable {

    /** Returns the request that created this data */
    Request request();

}