public class SingleItemToSingleRequestProtocol
extends io.netty.channel.ChannelDuplexHandler
PlcRequest which addresses multiple PlcFields into multiple subsequent PlcRequests.| Modifier and Type | Class and Description |
|---|---|
protected static class |
SingleItemToSingleRequestProtocol.CorrelatedPlcReadRequest |
protected static interface |
SingleItemToSingleRequestProtocol.CorrelatedPlcRequest |
protected static class |
SingleItemToSingleRequestProtocol.CorrelatedPlcSubscriptionRequest |
protected static class |
SingleItemToSingleRequestProtocol.CorrelatedPlcUnsubscriptionRequest |
protected static class |
SingleItemToSingleRequestProtocol.CorrelatedPlcWriteRequest |
static class |
SingleItemToSingleRequestProtocol.SplitConfig |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
SingleItemToSingleRequestProtocol(PlcReader reader,
PlcWriter writer,
PlcSubscriber subscriber,
io.netty.util.Timer timer) |
SingleItemToSingleRequestProtocol(PlcReader reader,
PlcWriter writer,
PlcSubscriber subscriber,
io.netty.util.Timer timer,
long defaultReceiveTimeout,
SingleItemToSingleRequestProtocol.SplitConfig splitConfig,
boolean betterImplementationPossible) |
SingleItemToSingleRequestProtocol(PlcReader reader,
PlcWriter writer,
PlcSubscriber subscriber,
io.netty.util.Timer timer,
SingleItemToSingleRequestProtocol.SplitConfig splitConfig) |
SingleItemToSingleRequestProtocol(PlcReader reader,
PlcWriter writer,
PlcSubscriber subscriber,
io.netty.util.Timer timer,
SingleItemToSingleRequestProtocol.SplitConfig splitConfig,
boolean betterImplementationPossible) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
errored(Integer currentTdpu,
Throwable throwable,
CompletableFuture<InternalPlcResponse> originalResponseFuture) |
Map<String,Number> |
getStatistics() |
protected void |
tryFinish(Integer currentTdpu,
InternalPlcResponse msg,
CompletableFuture<InternalPlcResponse> originalResponseFuture) |
protected void |
trySendingMessages(io.netty.channel.ChannelHandlerContext ctx) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelActive, channelRead, channelReadComplete, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic SingleItemToSingleRequestProtocol(PlcReader reader, PlcWriter writer, PlcSubscriber subscriber, io.netty.util.Timer timer)
public SingleItemToSingleRequestProtocol(PlcReader reader, PlcWriter writer, PlcSubscriber subscriber, io.netty.util.Timer timer, SingleItemToSingleRequestProtocol.SplitConfig splitConfig)
public SingleItemToSingleRequestProtocol(PlcReader reader, PlcWriter writer, PlcSubscriber subscriber, io.netty.util.Timer timer, SingleItemToSingleRequestProtocol.SplitConfig splitConfig, boolean betterImplementationPossible)
public SingleItemToSingleRequestProtocol(PlcReader reader, PlcWriter writer, PlcSubscriber subscriber, io.netty.util.Timer timer, long defaultReceiveTimeout, SingleItemToSingleRequestProtocol.SplitConfig splitConfig, boolean betterImplementationPossible)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered 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 tryFinish(Integer currentTdpu, InternalPlcResponse msg, CompletableFuture<InternalPlcResponse> originalResponseFuture)
protected void errored(Integer currentTdpu, Throwable throwable, CompletableFuture<InternalPlcResponse> originalResponseFuture)
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.ChannelDuplexHandlerExceptionprotected void trySendingMessages(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2017–2018 The Apache Software Foundation. All rights reserved.