use of org.neo4j.bolt.v4.messaging.RunMessageDecoder in project neo4j by neo4j.
the class BoltRequestMessageReaderV41 method buildDecoders.
private static List<RequestMessageDecoder> buildDecoders(BoltConnection connection, BoltResponseMessageWriter responseMessageWriter, BookmarksParser bookmarksParser, LogService logService) {
BoltResponseHandler resultHandler = new ResultHandler(responseMessageWriter, connection, internalLog(logService));
BoltResponseHandler defaultHandler = newSimpleResponseHandler(responseMessageWriter, connection, logService);
return Arrays.asList(// NEW
new HelloMessageDecoder(defaultHandler), new RunMessageDecoder(defaultHandler, bookmarksParser), new DiscardMessageDecoder(resultHandler), new PullMessageDecoder(resultHandler), new BeginMessageDecoder(defaultHandler, bookmarksParser), new CommitMessageDecoder(resultHandler), new RollbackMessageDecoder(resultHandler), new ResetMessageDecoder(connection, defaultHandler), new GoodbyeMessageDecoder(connection, defaultHandler));
}
use of org.neo4j.bolt.v4.messaging.RunMessageDecoder in project neo4j by neo4j.
the class BoltRequestMessageReaderV43 method buildDecoders.
private static List<RequestMessageDecoder> buildDecoders(BoltConnection connection, BoltResponseMessageWriter responseMessageWriter, BookmarksParser bookmarksParser, LogService logService) {
BoltResponseHandler resultHandler = new ResultHandler(responseMessageWriter, connection, internalLog(logService));
BoltResponseHandler defaultHandler = newSimpleResponseHandler(responseMessageWriter, connection, logService);
return Arrays.asList(new HelloMessageDecoder(defaultHandler), new RunMessageDecoder(defaultHandler, bookmarksParser), new DiscardMessageDecoder(resultHandler), new PullMessageDecoder(resultHandler), new BeginMessageDecoder(defaultHandler, bookmarksParser), new CommitMessageDecoder(resultHandler), new RollbackMessageDecoder(resultHandler), new ResetMessageDecoder(connection, defaultHandler), new GoodbyeMessageDecoder(connection, defaultHandler), // New in 4.3
new RouteMessageDecoder(defaultHandler, bookmarksParser));
}
Aggregations