Class ProtocolManager


  • public final class ProtocolManager
    extends Object
    A manager for switching behaviours between difference wire protocol.

    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 Detail

      • ProtocolManager

        public ProtocolManager()
    • Method Detail

      • isReadonlyAvailable

        public boolean isReadonlyAvailable()
      • deserializeConnectRequest

        public ConnectRequest deserializeConnectRequest​(InputArchive inputArchive)
                                                 throws IOException
        Deserializing ConnectRequest should be specially handled for request from client version before and including ZooKeeper 3.3 which doesn't understand readOnly field.
        Throws:
        IOException