public class HeaderDecoder extends HintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
Constructor and Description |
---|
HeaderDecoder(Codec codec,
ChannelFactory channelFactory,
Configuration configuration,
ClientListenerNotifier listenerNotifier) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(byte[] listenerId) |
CompletableFuture<Void> |
allCompleteFuture() |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
checkpoint()
Stores the internal cumulative buffer's reader position.
|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
failoverClientListeners() |
boolean |
isSharable() |
int |
registeredOperations() |
void |
registerOperation(io.netty.channel.Channel channel,
HotRodOperation<?> operation) |
void |
removeListener(byte[] listenerId) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
callDecode, checkpoint, state, state
actualReadableBytes, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged
public static final String NAME
public HeaderDecoder(Codec codec, ChannelFactory channelFactory, Configuration configuration, ClientListenerNotifier listenerNotifier)
public boolean isSharable()
isSharable
in class io.netty.channel.ChannelHandlerAdapter
public void registerOperation(io.netty.channel.Channel channel, HotRodOperation<?> operation)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)
decode
in class io.netty.handler.codec.ByteToMessageDecoder
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class HintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
public void failoverClientListeners()
public CompletableFuture<Void> allCompleteFuture()
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.handler.codec.ByteToMessageDecoder
public void checkpoint()
HotRodOperation
checkpoint
in class HintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
public int registeredOperations()
public void addListener(byte[] listenerId)
public void removeListener(byte[] listenerId)
Copyright © 2021 JBoss by Red Hat. All rights reserved.