blob: 7074243667f5c07d8bddfe306179370ae825cefe (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;
/**
* This reply class is used by operations that perform writes to VDS/search,
* that is: Put, Remove, Update.
*/
public class WriteDocumentReply extends DocumentAcceptedReply {
private long highestModificationTimestamp = 0;
public WriteDocumentReply(int type) {
super(type);
}
/**
* Returns a unique VDS timestamp so that visiting up to and including that timestamp
* will return a state including this operation but not any operations sent to the same distributor
* after it. For PUT/UPDATE/REMOVE operations this timestamp will be the timestamp of the operation.
*
* @return Returns the modification timestamp.
*/
public long getHighestModificationTimestamp() {
return highestModificationTimestamp;
}
/**
* Sets the modification timestamp.
*/
public void setHighestModificationTimestamp(long timestamp) {
this.highestModificationTimestamp = timestamp;
}
}
|