From 8c477ba59274179cae33d94b5d36f5a308defd61 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Fri, 15 Jan 2021 14:22:18 +0100 Subject: Remove unused class --- .../yahoo/vespa/http/server/FeedErrorMessage.java | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedErrorMessage.java (limited to 'vespaclient-container-plugin') 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; - } - -} -- cgit v1.2.3