update STOMP support to reactor-netty 0.6

This commit is contained in:
Stephane Maldini
2016-12-13 17:29:43 +00:00
parent 6922a1c534
commit 70bab23609

View File

@@ -61,9 +61,11 @@ public class ReactorNettyTcpConnection<P> implements TcpConnection<P> {
@Override
public ListenableFuture<Void> send(Message<P> message) {
ByteBuf byteBuf = this.inbound.channel().alloc().buffer();
ByteBuf byteBuf = this.inbound.alloc()
.buffer();
this.encoder.accept(byteBuf, message);
return new MonoToListenableFutureAdapter<>(this.outbound.send(Mono.just(byteBuf)));
return new MonoToListenableFutureAdapter<>(this.outbound.send(Mono.just(byteBuf)
.then()));
}
@Override