public class MessageChannel
extends io.netty.channel.ChannelDuplexHandler
| Constructor and Description |
|---|
MessageChannel(ProtocolOptions options,
MessageManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(MessageSource messageSource) |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
handleAck(io.netty.channel.ChannelHandlerContext ctx,
int receiveSequenceNumber) |
protected void |
handleInformationTransfer(InformationTransfer msg) |
protected void |
handleTimeout1() |
protected void |
handleTimeout2() |
protected void |
handleTimeout3() |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic MessageChannel(ProtocolOptions options, MessageManager manager)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void handleTimeout1()
protected void handleTimeout2()
protected void handleTimeout3()
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void handleInformationTransfer(InformationTransfer msg)
protected void handleAck(io.netty.channel.ChannelHandlerContext ctx,
int receiveSequenceNumber)
public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void addSource(MessageSource messageSource)
Copyright © 2017 Eclipse NeoSCADA Project. All rights reserved.