T
- The underlying type of the Envelope
's contentpublic abstract class SourceQueryEncoder<T extends SourceQueryRequest> extends MessageOutboundEncoder<T>
Envelope
wrapped messagesConstructor and Description |
---|
SourceQueryEncoder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptMessage(Class<T> requestClass,
Envelope<T> envelope)
acceptMessage.
|
protected abstract boolean |
acceptQueryRequest(Class<? extends SourceQueryRequest> cls,
Envelope<SourceQueryRequest> envelope)
acceptQueryRequest.
|
protected void |
encodeMessage(io.netty.channel.ChannelHandlerContext ctx,
Envelope<T> msg,
List<Object> out)
encodeMessage.
|
protected abstract void |
encodeQueryRequest(io.netty.channel.ChannelHandlerContext ctx,
Envelope<T> msg,
List<Object> out)
encodeQueryRequest.
|
acceptOutboundMessage, debug, encode, error, getContext, getRequest, handlerAdded, handlerRemoved, info, isDebugEnabled, log, trace, warn, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, isSharable
protected final void encodeMessage(io.netty.channel.ChannelHandlerContext ctx, Envelope<T> msg, List<Object> out) throws Exception
encodeMessage.
encodeMessage
in class MessageOutboundEncoder<T extends SourceQueryRequest>
ctx
- a ChannelHandlerContext
objectmsg
- a Envelope
objectout
- a List
objectException
- if any.protected abstract void encodeQueryRequest(io.netty.channel.ChannelHandlerContext ctx, Envelope<T> msg, List<Object> out) throws Exception
encodeQueryRequest.
protected final boolean acceptMessage(Class<T> requestClass, Envelope<T> envelope) throws Exception
acceptMessage.
acceptMessage
in class MessageOutboundEncoder<T extends SourceQueryRequest>
requestClass
- a Class
objectenvelope
- a Envelope
objectException
- if any.protected abstract boolean acceptQueryRequest(Class<? extends SourceQueryRequest> cls, Envelope<SourceQueryRequest> envelope)
acceptQueryRequest.
Copyright © 2016–2024. All rights reserved.