netty-pull
a net-pull implementation based on netty.
dependency
<dependency>
<groupId>com.zmannotes</groupId>
<artifactId>netty-pull</artifactId>
<version>2.1.3</version>
</dependency>
example
Server
new NettyServer()
.onAccept((channelId,duplex) -> pull(duplex, duplex))
.listen(8081);
Client
DefaultSink<ByteBuf> sink = new DefaultSink<>(System.out::println);
new NettyClient()
.onConnected((channelId,duplex) -> pull( duplex, sink))
.connect("localhost", 8081);