blob: 7b1a0e6734df7726b67cd3d4c4dab3d45d3fc465 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi;
import com.yahoo.document.DocumentOperation;
/**
* Visitor response containing a document operation. All visitor responses have ack
* tokens that must be acked.
*
* @author Arne H Juul
*/
public class DocumentOpVisitorResponse extends VisitorResponse {
private DocumentOperation op;
/**
* Creates visitor response containing a document operation and an ack token.
*
* @param op the document operation
* @param ack the ack token
*/
public DocumentOpVisitorResponse(DocumentOperation op, AckToken ack) {
super(ack);
this.op = op;
}
/** @return the document operation */
public DocumentOperation getDocumentOperation() { return op; }
}
|