| Package | Description |
|---|---|
| net.openhft.chronicle.wire.channel |
Provides classes and interfaces for managing Chronicle communication channels and their operations.
|
| net.openhft.chronicle.wire.channel.echo | |
| net.openhft.chronicle.wire.channel.echo.internal | |
| net.openhft.chronicle.wire.channel.impl |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ChannelHandler
This interface represents a channel handler that performs various channel-related operations
such as executing actions within a context, handling responses, and configuring channel settings.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHandler<H extends AbstractHandler<H>>
The AbstractHandler class serves as a foundational template for all types of channel handlers.
|
class |
AbstractHeader<H extends AbstractHeader<H>>
The AbstractHeader class serves as a foundational template for all channel header types.
|
class |
ErrorHeader
A specialized type of
AbstractHeader that encapsulates an error message. |
class |
ErrorReplyHandler
A specialized
ReplyingHandler designed to manage error responses. |
class |
GatewayHandler
A specialized
ErrorReplyHandler responsible for delegating operations to a Gateway. |
class |
OkHeader
An extension of the
AbstractHeader class designed to indicate successful establishment of a channel. |
class |
RedirectHeader
A specialized version of
AbstractHeader, acting similar to an HTTP redirect header. |
class |
ReplyHeader<R>
Class ReplyHeader extends the AbstractHeader class and encapsulates a reply object of type
R. |
class |
ReplyingHandler<H extends ReplyingHandler<H>>
An abstract handler that provides a mechanism for sending responses in a communication protocol.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelHeader |
ChronicleChannel.headerIn()
Retrieves the header for incoming messages.
|
ChannelHeader |
InternalChronicleChannel.headerInToUse()
Returns the ChannelHeader to be used for incoming data.
|
ChannelHeader |
ChronicleChannel.headerOut()
Retrieves the header for outgoing messages.
|
protected ChannelHeader |
ChronicleGatewayMain.replaceInHeader(ChannelHeader channelHeader)
Allows replacing of the inbound channel header.
|
protected ChannelHeader |
ChronicleServiceMain.replaceOutHeader(ChannelHeader channelHandler) |
protected ChannelHeader |
ChronicleGatewayMain.replaceOutHeader(ChannelHeader channelHeader)
Allows replacing of the outbound channel header.
|
ChannelHeader |
ErrorReplyHandler.responseHeader(ChronicleContext context)
Creates an
ErrorHeader as a response, populated with the current error message. |
abstract ChannelHeader |
ReplyingHandler.responseHeader(ChronicleContext context) |
default ChannelHeader |
ChannelHandler.responseHeader(ChronicleContext context)
Provides a response header to send back to the client.
|
ChannelHeader |
ChannelHeader.sessionName(String sessionName)
Assigns a new session name to the channel.
|
ChannelHeader |
ChannelHeader.systemContext(SystemContext systemContext)
Assigns a new system context to the channel.
|
| Modifier and Type | Method and Description |
|---|---|
static ChronicleChannel |
ChronicleChannel.newChannel(SocketRegistry socketRegistry,
ChronicleChannelCfg channelCfg,
ChannelHeader headerOut)
Creates a new instance of a ChronicleChannel.
|
protected ChannelHeader |
ChronicleGatewayMain.replaceInHeader(ChannelHeader channelHeader)
Allows replacing of the inbound channel header.
|
protected ChannelHeader |
ChronicleServiceMain.replaceOutHeader(ChannelHeader channelHandler) |
protected ChannelHeader |
ChronicleGatewayMain.replaceOutHeader(ChannelHeader channelHeader)
Allows replacing of the outbound channel header.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EchoHandler
An implementation of a channel handler that primarily echoes back any incoming data.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelHeader |
EchoChannel.headerIn() |
ChannelHeader |
EchoChannel.headerOut() |
| Modifier and Type | Method and Description |
|---|---|
ChannelHeader |
DelegateChronicleChannel.headerIn() |
ChannelHeader |
TCPChronicleChannel.headerIn() |
ChannelHeader |
DelegateChronicleChannel.headerInToUse() |
ChannelHeader |
TCPChronicleChannel.headerInToUse() |
ChannelHeader |
DelegateChronicleChannel.headerOut() |
ChannelHeader |
TCPChronicleChannel.headerOut() |
| Modifier and Type | Method and Description |
|---|---|
static ChronicleChannel |
ChronicleChannelUtils.newChannel(SocketRegistry socketRegistry,
ChronicleChannelCfg channelCfg,
ChannelHeader headerOut) |
| Constructor and Description |
|---|
TCPChronicleChannel(ChronicleChannelCfg channelCfg,
ChannelHeader headerOut,
SocketRegistry socketRegistry)
Initiator constructor
|
Copyright © 2023. All rights reserved.