public final class ProtocolManager extends Object
Basically, wire protocol should be backward and forward compatible between minor versions. However, there are several cases that it's different due to Jute's limitations.
Constructor and Description |
---|
ProtocolManager() |
Modifier and Type | Method and Description |
---|---|
ConnectRequest |
deserializeConnectRequest(InputArchive inputArchive)
Deserializing
ConnectRequest should be specially handled for request from client
version before and including ZooKeeper 3.3 which doesn't understand readOnly field. |
ConnectResponse |
deserializeConnectResponse(InputArchive inputArchive)
Deserializing
ConnectResponse should be specially handled for response from server
version before and including ZooKeeper 3.3 which doesn't understand readOnly field. |
boolean |
isReadonlyAvailable() |
void |
serializeConnectResponse(ConnectResponse response,
OutputArchive outputArchive)
The serialization of
ConnectResponse has to be handled
specially as clients earlier than 3.5 might not expect the
readOnly flag. |
public boolean isReadonlyAvailable()
public ConnectRequest deserializeConnectRequest(InputArchive inputArchive) throws IOException
ConnectRequest
should be specially handled for request from client
version before and including ZooKeeper 3.3 which doesn't understand readOnly field.IOException
public ConnectResponse deserializeConnectResponse(InputArchive inputArchive) throws IOException
ConnectResponse
should be specially handled for response from server
version before and including ZooKeeper 3.3 which doesn't understand readOnly field.IOException
public void serializeConnectResponse(ConnectResponse response, OutputArchive outputArchive) throws IOException
ConnectResponse
has to be handled
specially as clients earlier than 3.5 might not expect the
readOnly
flag.response
- the response to serializeoutputArchive
- the serialization destinationIOException
deserializeConnectRequest(InputArchive)
Copyright © 2008–2025 The Apache Software Foundation. All rights reserved.