public class NettyStreamingChannel extends io.netty.channel.ChannelInboundHandlerAdapter implements StreamingChannel
StreamingChannel.Factory, StreamingChannel.Kind, StreamingChannel.Send
Constructor and Description |
---|
NettyStreamingChannel(int messagingVersion,
io.netty.channel.Channel channel,
StreamingChannel.Kind kind) |
Modifier and Type | Method and Description |
---|---|
StreamingDataOutputPlus |
acquireOut()
until closed, cannot invoke
StreamingChannel.send(Send) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object message) |
io.netty.util.concurrent.Future<?> |
close() |
boolean |
connected() |
java.net.InetSocketAddress |
connectedTo() |
java.lang.String |
description() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
java.lang.Object |
id() |
StreamingDataInputPlus |
in() |
void |
onClose(java.lang.Runnable runOnClose) |
java.net.InetSocketAddress |
peer() |
Future<?> |
send(StreamingChannel.Send send) |
static void |
shutdown()
Shutdown for in-JVM tests.
|
static void |
trackInboundHandlers() |
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public NettyStreamingChannel(int messagingVersion, io.netty.channel.Channel channel, StreamingChannel.Kind kind)
public java.lang.Object id()
id
in interface StreamingChannel
public java.lang.String description()
description
in interface StreamingChannel
public java.net.InetSocketAddress peer()
peer
in interface StreamingChannel
public java.net.InetSocketAddress connectedTo()
connectedTo
in interface StreamingChannel
public boolean connected()
connected
in interface StreamingChannel
public StreamingDataInputPlus in()
in
in interface StreamingChannel
public StreamingDataOutputPlus acquireOut()
StreamingChannel
StreamingChannel.send(Send)
acquireOut
in interface StreamingChannel
public Future<?> send(StreamingChannel.Send send)
send
in interface StreamingChannel
public io.netty.util.concurrent.Future<?> close()
close
in interface StreamingChannel
public void onClose(java.lang.Runnable runOnClose)
onClose
in interface StreamingChannel
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object message)
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public static void shutdown()
public static void trackInboundHandlers()
Copyright © 2009-2022 The Apache Software Foundation