H - The specific subclass of ReplyingHandler, used for ensuring type correctness in fluent APIs.public abstract class ReplyingHandler<H extends ReplyingHandler<H>> extends AbstractHandler<H>
It extends AbstractHandler, and subclasses of this handler are expected to implement
the responseHeader(ChronicleContext) method to provide a custom channel header for responses.
EMPTYDISCARD| Constructor and Description |
|---|
ReplyingHandler() |
| Modifier and Type | Method and Description |
|---|---|
ChronicleChannel |
asInternalChannel(ChronicleContext context,
ChronicleChannelCfg channelCfg)
Converts the current ChannelHandler to an internal channel using the provided context and channel configuration.
|
abstract ChannelHeader |
responseHeader(ChronicleContext context)
Provides a response header to send back to the client.
|
void |
run(ChronicleContext context,
ChronicleChannel channel)
Executes actions within the provided context and channel.
|
buffered, bufferedsessionName, sessionName, systemContext, systemContextusesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcloseWhenRunEnds, recordHistorysessionName, sessionName, systemContext, systemContext$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic abstract ChannelHeader responseHeader(ChronicleContext context)
ChannelHandlercontext - the ChronicleContext within which the response header is neededpublic void run(ChronicleContext context, ChronicleChannel channel) throws net.openhft.chronicle.core.io.ClosedIORuntimeException
ChannelHandlercontext - the ChronicleContext within which actions will be executedchannel - the ChronicleChannel within which actions will be executednet.openhft.chronicle.core.io.ClosedIORuntimeException - if an I/O error occurspublic ChronicleChannel asInternalChannel(ChronicleContext context, ChronicleChannelCfg channelCfg)
ChannelHandlercontext - the ChronicleContext within which the internal channel is createdchannelCfg - the ChronicleChannelCfg used to configure the new internal channelCopyright © 2023. All rights reserved.