Package com.yahoo.vespa.config.protocol
Interface ConfigResponse
- All Known Implementing Classes:
SlimeConfigResponse
public interface ConfigResponse
A config response encapsulates the payload and some meta information. This makes it possible to
represent the payload in different formats all up to when rendering it to the client. A subclass
of this must be thread safe, because a response may be cached and, the methods below should be callable
from multiple request handler threads.
- Author:
- Ulf Lilleengen
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
com.yahoo.text.AbstractUtf8Array
default boolean
hasNewerGeneration
(JRTServerConfigRequest request) void
serialize
(OutputStream os, CompressionType uncompressed)
-
Method Details
-
getPayload
com.yahoo.text.AbstractUtf8Array getPayload() -
getGeneration
long getGeneration() -
applyOnRestart
boolean applyOnRestart() -
serialize
- Throws:
IOException
-
hasNewerGeneration
-
getCompressionInfo
CompressionInfo getCompressionInfo() -
getPayloadChecksums
PayloadChecksums getPayloadChecksums()
-