blob: df3c283c41ec3d30f4ec917c274adf0263ff14f2 (
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
35
36
37
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;
public class DestroyVisitorMessage extends DocumentMessage {
private String instanceId;
DestroyVisitorMessage() {
// must be deserialized into
}
public DestroyVisitorMessage(String instanceId) {
this.instanceId = instanceId;
}
public DestroyVisitorMessage(DestroyVisitorMessage cmd) {
instanceId = cmd.instanceId;
}
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
@Override
public DocumentReply createReply() {
return new DocumentReply(DocumentProtocol.REPLY_DESTROYVISITOR);
}
@Override
public int getType() {
return DocumentProtocol.MESSAGE_DESTROYVISITOR;
}
}
|