public class LocalExecServerHandler extends io.netty.channel.SimpleChannelInboundHandler<String>
Modifier and Type | Field and Description |
---|---|
protected boolean |
answered |
protected LocalExecServerInitializer |
factory |
protected static boolean |
isShutdown |
Constructor and Description |
---|
LocalExecServerHandler(LocalExecServerInitializer factory,
long newdelay)
Constructor with a specific delay
|
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
String msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
static boolean |
isShutdown(io.netty.channel.Channel channel)
Is the Local Exec Server going Shutdown
|
static void |
junitSetNotShutdown() |
void |
setNewDelay(long newdelay)
Change the delay to the specific value.
|
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected final LocalExecServerInitializer factory
protected static boolean isShutdown
protected volatile boolean answered
public LocalExecServerHandler(LocalExecServerInitializer factory, long newdelay)
newdelay
- public static boolean isShutdown(io.netty.channel.Channel channel)
channel
- associated channelpublic static void junitSetNotShutdown()
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void setNewDelay(long newdelay)
newdelay
- protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, String msg) throws Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2009–2020 Waarp. All rights reserved.