Class BoltProtocolV51

All Implemented Interfaces:
BoltProtocol
Direct Known Subclasses:
BoltProtocolV52

public class BoltProtocolV51 extends BoltProtocolV5
  • Field Details

  • Constructor Details

    • BoltProtocolV51

      public BoltProtocolV51()
  • Method Details

    • initializeChannel

      public void initializeChannel(String userAgent, org.neo4j.driver.internal.BoltAgent boltAgent, AuthToken authToken, RoutingContext routingContext, io.netty.channel.ChannelPromise channelInitializedPromise, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, Clock clock)
      Description copied from interface: BoltProtocol
      Initialize channel after it is connected and handshake selected this protocol version.
      Specified by:
      initializeChannel in interface BoltProtocol
      Overrides:
      initializeChannel in class BoltProtocolV3
      Parameters:
      userAgent - the user agent string.
      boltAgent - the bolt agent
      authToken - the authentication token.
      routingContext - the configured routing context
      channelInitializedPromise - the promise to be notified when initialization is completed.
      notificationConfig - the notification configuration
      clock - the clock to use
    • version

      public BoltProtocolVersion version()
      Description copied from interface: BoltProtocol
      Returns the protocol version. It can be used for version specific error messages.
      Specified by:
      version in interface BoltProtocol
      Overrides:
      version in class BoltProtocolV5
      Returns:
      the protocol version.
    • createMessageFormat

      public MessageFormat createMessageFormat()
      Description copied from interface: BoltProtocol
      Instantiate MessageFormat used by this Bolt protocol verison.
      Specified by:
      createMessageFormat in interface BoltProtocol
      Overrides:
      createMessageFormat in class BoltProtocolV5
      Returns:
      new message format.