public interface ChannelHandler extends ChannelHeader
EMPTYDISCARD| 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.
|
Boolean |
buffered()
Indicates whether the handler supports buffering.
|
default boolean |
closeWhenRunEnds()
Determines whether the ChronicleChannel should be closed when the run method ends.
|
default boolean |
recordHistory() |
default 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.
|
sessionName, 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, writeValueunexpectedFielddefault ChannelHeader responseHeader(ChronicleContext context)
context - the ChronicleContext within which the response header is neededvoid run(ChronicleContext context, ChronicleChannel channel) throws net.openhft.chronicle.core.io.ClosedIORuntimeException, net.openhft.chronicle.core.io.InvalidMarshallableException
context - 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 occursnet.openhft.chronicle.core.io.InvalidMarshallableException - if a Marshallable object is invaliddefault boolean closeWhenRunEnds()
ChronicleChannel asInternalChannel(ChronicleContext context, ChronicleChannelCfg channelCfg)
context - the ChronicleContext within which the internal channel is createdchannelCfg - the ChronicleChannelCfg used to configure the new internal channelBoolean buffered()
default boolean recordHistory()
Copyright © 2023. All rights reserved.