Java Code Examples for reactor.netty.ByteBufFlux#fromInbound()
The following examples show how to use
reactor.netty.ByteBufFlux#fromInbound() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebsocketFinalizer.java From reactor-netty with Apache License 2.0 | 5 votes |
@Override public ByteBufFlux receive() { ByteBufAllocator alloc = (ByteBufAllocator) configuration().options() .get(ChannelOption.ALLOCATOR); if (alloc == null) { alloc = ByteBufAllocator.DEFAULT; } @SuppressWarnings("unchecked") Mono<ChannelOperations<?, ?>> connector = (Mono<ChannelOperations<?, ?>>) connect(); return ByteBufFlux.fromInbound(connector.flatMapMany(contentReceiver), alloc); }
Example 2
Source File: HttpClientFinalizer.java From reactor-netty with Apache License 2.0 | 5 votes |
@Override public ByteBufFlux responseContent() { ByteBufAllocator alloc = (ByteBufAllocator) configuration().options() .get(ChannelOption.ALLOCATOR); if (alloc == null) { alloc = ByteBufAllocator.DEFAULT; } @SuppressWarnings("unchecked") Mono<ChannelOperations<?, ?>> connector = (Mono<ChannelOperations<?, ?>>) connect(); return ByteBufFlux.fromInbound(connector.flatMapMany(contentReceiver), alloc); }
Example 3
Source File: ChannelOperations.java From reactor-netty with Apache License 2.0 | 4 votes |
@Override public ByteBufFlux receive() { return ByteBufFlux.fromInbound(receiveObject(), connection.channel() .alloc()); }