Search in sources :

Example 1 with DiscardMessageDecoder

use of org.neo4j.bolt.v4.messaging.DiscardMessageDecoder 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));
}
Also used : DiscardMessageDecoder(org.neo4j.bolt.v4.messaging.DiscardMessageDecoder) RollbackMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.RollbackMessageDecoder) HelloMessageDecoder(org.neo4j.bolt.v41.messaging.decoder.HelloMessageDecoder) GoodbyeMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.GoodbyeMessageDecoder) BoltResponseHandler(org.neo4j.bolt.runtime.BoltResponseHandler) ResetMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.ResetMessageDecoder) ResultHandler(org.neo4j.bolt.v3.messaging.ResultHandler) CommitMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.CommitMessageDecoder) PullMessageDecoder(org.neo4j.bolt.v4.messaging.PullMessageDecoder) BeginMessageDecoder(org.neo4j.bolt.v4.messaging.BeginMessageDecoder) RunMessageDecoder(org.neo4j.bolt.v4.messaging.RunMessageDecoder)

Example 2 with DiscardMessageDecoder

use of org.neo4j.bolt.v4.messaging.DiscardMessageDecoder 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));
}
Also used : DiscardMessageDecoder(org.neo4j.bolt.v4.messaging.DiscardMessageDecoder) RollbackMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.RollbackMessageDecoder) HelloMessageDecoder(org.neo4j.bolt.v41.messaging.decoder.HelloMessageDecoder) GoodbyeMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.GoodbyeMessageDecoder) BoltResponseHandler(org.neo4j.bolt.runtime.BoltResponseHandler) ResetMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.ResetMessageDecoder) RouteMessageDecoder(org.neo4j.bolt.v43.messaging.decoder.RouteMessageDecoder) ResultHandler(org.neo4j.bolt.v3.messaging.ResultHandler) CommitMessageDecoder(org.neo4j.bolt.v3.messaging.decoder.CommitMessageDecoder) PullMessageDecoder(org.neo4j.bolt.v4.messaging.PullMessageDecoder) BeginMessageDecoder(org.neo4j.bolt.v4.messaging.BeginMessageDecoder) RunMessageDecoder(org.neo4j.bolt.v4.messaging.RunMessageDecoder)

Aggregations

BoltResponseHandler (org.neo4j.bolt.runtime.BoltResponseHandler)2 ResultHandler (org.neo4j.bolt.v3.messaging.ResultHandler)2 CommitMessageDecoder (org.neo4j.bolt.v3.messaging.decoder.CommitMessageDecoder)2 GoodbyeMessageDecoder (org.neo4j.bolt.v3.messaging.decoder.GoodbyeMessageDecoder)2 ResetMessageDecoder (org.neo4j.bolt.v3.messaging.decoder.ResetMessageDecoder)2 RollbackMessageDecoder (org.neo4j.bolt.v3.messaging.decoder.RollbackMessageDecoder)2 BeginMessageDecoder (org.neo4j.bolt.v4.messaging.BeginMessageDecoder)2 DiscardMessageDecoder (org.neo4j.bolt.v4.messaging.DiscardMessageDecoder)2 PullMessageDecoder (org.neo4j.bolt.v4.messaging.PullMessageDecoder)2 RunMessageDecoder (org.neo4j.bolt.v4.messaging.RunMessageDecoder)2 HelloMessageDecoder (org.neo4j.bolt.v41.messaging.decoder.HelloMessageDecoder)2 RouteMessageDecoder (org.neo4j.bolt.v43.messaging.decoder.RouteMessageDecoder)1