Package com.bradyrussell.uiscoin.netty
Class NodeP2PClientHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
com.bradyrussell.uiscoin.netty.NodeP2PClientHandler
- All Implemented Interfaces:
 io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class NodeP2PClientHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
- 
Nested Class Summary
 - 
Constructor Summary
Constructors Constructor Description NodeP2PClientHandler(UISCoinNode node) - 
Method Summary
Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)protected voidchannelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)voidSendBlockRequest(BlockRequest request)Deprecated.voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt)Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable 
- 
Constructor Details
 - 
Method Details
- 
SendBlockRequest
Deprecated. - 
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
 channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
 channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
 java.lang.Exception
 - 
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
 channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
 channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
 java.lang.Exception
 - 
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)- Specified by:
 exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
 exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
 exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
 - 
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf) throws java.lang.Exception- Specified by:
 channelRead0in classio.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>- Throws:
 java.lang.Exception
 - 
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception- Specified by:
 userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
 userEventTriggeredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
 java.lang.Exception
 
 -