public class BoltHandshakeProtocolHandler extends Object
This class is stateful, one instance is expected per channel.
| Modifier and Type | Field and Description |
|---|---|
static int |
BOLT_MAGIC_PREAMBLE |
| Constructor and Description |
|---|
BoltHandshakeProtocolHandler(Map<Long,Function<BoltChannel,BoltMessagingProtocolHandler>> protocolHandlers,
boolean encryptionRequired,
boolean isEncrypted) |
| Modifier and Type | Method and Description |
|---|---|
BoltMessagingProtocolHandler |
chosenProtocol() |
HandshakeOutcome |
perform(BoltChannel boltChannel,
io.netty.buffer.ByteBuf buffer) |
public static final int BOLT_MAGIC_PREAMBLE
public BoltHandshakeProtocolHandler(Map<Long,Function<BoltChannel,BoltMessagingProtocolHandler>> protocolHandlers, boolean encryptionRequired, boolean isEncrypted)
protocolHandlers - version -> protocol mappingencryptionRequired - whether or not the server allows only encrypted connectionsisEncrypted - whether of not this connection is encryptedpublic HandshakeOutcome perform(BoltChannel boltChannel, io.netty.buffer.ByteBuf buffer)
public BoltMessagingProtocolHandler chosenProtocol()
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.