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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompressionInfo
getCompressionInfo()
java.lang.String
getConfigMd5()
long
getGeneration()
com.yahoo.text.Utf8Array
getPayload()
default boolean
hasEqualConfig(JRTServerConfigRequest request)
default boolean
hasNewerGeneration(JRTServerConfigRequest request)
boolean
isInternalRedeploy()
void
serialize(java.io.OutputStream os, CompressionType uncompressed)
-
-
-
Method Detail
-
getPayload
com.yahoo.text.Utf8Array getPayload()
-
getGeneration
long getGeneration()
-
isInternalRedeploy
boolean isInternalRedeploy()
-
getConfigMd5
java.lang.String getConfigMd5()
-
serialize
void serialize(java.io.OutputStream os, CompressionType uncompressed) throws java.io.IOException
- Throws:
java.io.IOException
-
hasEqualConfig
default boolean hasEqualConfig(JRTServerConfigRequest request)
-
hasNewerGeneration
default boolean hasNewerGeneration(JRTServerConfigRequest request)
-
getCompressionInfo
CompressionInfo getCompressionInfo()
-
-