blob: 31207210ef2e1f15a5bd039bd78a12b33d05ef77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2016 Yahoo Inc. 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 <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a>
*/
// 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
*/
public Request request();
}
|