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 boolean
applyOnRestart()
CompressionInfo
getCompressionInfo()
long
getGeneration()
com.yahoo.text.AbstractUtf8Array
getPayload()
PayloadChecksums
getPayloadChecksums()
default boolean
hasEqualConfig(JRTServerConfigRequest request)
default boolean
hasNewerGeneration(JRTServerConfigRequest request)
void
serialize(OutputStream os, CompressionType uncompressed)
-
-
-
Method Detail
-
getPayload
com.yahoo.text.AbstractUtf8Array getPayload()
-
getGeneration
long getGeneration()
-
applyOnRestart
boolean applyOnRestart()
-
serialize
void serialize(OutputStream os, CompressionType uncompressed) throws IOException
- Throws:
IOException
-
hasEqualConfig
default boolean hasEqualConfig(JRTServerConfigRequest request)
-
hasNewerGeneration
default boolean hasNewerGeneration(JRTServerConfigRequest request)
-
getCompressionInfo
CompressionInfo getCompressionInfo()
-
getPayloadChecksums
PayloadChecksums getPayloadChecksums()
-
-