public class BulkRestDataSender
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
| Constructor and Description |
|---|
BulkRestDataSender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpResponse msg) |
CompletableFuture<byte[]> |
completeRequest()
Complete the request by a final empty chunck and return the response from the server.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
sendData(byte[] data)
send the next chunk of data.
|
void |
sendData(io.netty.buffer.ByteBuf buf) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void sendData(byte[] data)
throws ClientException
data - ClientException - when there is an exception sending the data. The exception is also thrown if no data can be sent for
10 secondspublic void sendData(io.netty.buffer.ByteBuf buf)
throws ClientException
ClientExceptionpublic CompletableFuture<byte[]> completeRequest()
Copyright © 2022 Space Applications Services. All rights reserved.