diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-01-27 08:21:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 08:21:04 +0100 |
commit | fb99ec84858f2c68fcc0d22bc182c0aad3c0cb83 (patch) | |
tree | 7f64b3acaf5ae13d7853904524195f1f282b3b70 /vespaclient-container-plugin | |
parent | 04d4b44edba74f6a11f1dd2710004ea0331c50d9 (diff) | |
parent | c60c8eda6c469854167e625335e360d78d6b4f42 (diff) |
Merge pull request #16089 from vespa-engine/jonmv/document-protocol-super-config
Jonmv/document protocol super config
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedErrorMessage.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedErrorMessage.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedErrorMessage.java deleted file mode 100644 index 1d7e8535909..00000000000 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedErrorMessage.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.http.server; - -import com.yahoo.document.DocumentId; -import com.yahoo.messagebus.Message; -import com.yahoo.text.Utf8String; - -import java.util.Arrays; - -public class FeedErrorMessage extends Message { - - private long sequenceId; - - public FeedErrorMessage(String operationId) { - try { - DocumentId id = new DocumentId(operationId); - sequenceId = Arrays.hashCode(id.getGlobalId()); - } catch (Exception e) { - sequenceId = 0; - } - } - - @Override - public Utf8String getProtocol() { - return new Utf8String("vespa-feed-handler-internal-bogus-protocol"); - } - - @Override - public int getType() { - return 1234; - } - - @Override - public boolean hasSequenceId() { - return true; - } - - @Override - public long getSequenceId() { - return sequenceId; - } - -} |