public class EchoChannel extends net.openhft.chronicle.core.io.SimpleCloseable implements ChronicleChannel
MARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
EchoChannel(ChronicleChannelCfg channelCfg) |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
ChronicleChannelCfg |
channelCfg()
Retrieves the configuration of the channel.
|
ChannelHeader |
headerIn()
Retrieves the header for incoming messages.
|
ChannelHeader |
headerOut()
Retrieves the header for outgoing messages.
|
long |
lastTestMessage()
Retrieves the highest timestamp received from the test messages.
|
DocumentContext |
readingDocument() |
void |
testMessage(long now)
Sends a test message using a monotonically increasing timestamp, enabling the caller to wait for a response via lastTestMessage().
|
DocumentContext |
writingDocument(boolean metaData)
Start a new DocumentContext, must always call close() when done.
|
close, isClosed, performCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteventHandlerAsRunnable, newChannel, readOneclose, closeQuietly, closeQuietlybuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText, writingDocumentmethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readTextpublic EchoChannel(ChronicleChannelCfg channelCfg)
public ChronicleChannelCfg channelCfg()
ChronicleChannelchannelCfg in interface ChronicleChannelpublic ChannelHeader headerOut()
ChronicleChannelheaderOut in interface ChronicleChannelpublic ChannelHeader headerIn()
ChronicleChannelheaderIn in interface ChronicleChannelpublic void testMessage(long now)
ChronicleChanneltestMessage in interface ChronicleChannelnow - a monotonically increasing timestamppublic long lastTestMessage()
ChronicleChannellastTestMessage in interface ChronicleChannelpublic DocumentContext readingDocument()
readingDocument in interface MarshallableInpublic DocumentContext writingDocument(boolean metaData) throws UnrecoverableTimeoutException
MarshallableOutwritingDocument in interface DocumentWrittenwritingDocument in interface MarshallableOutUnrecoverableTimeoutExceptionpublic DocumentContext acquireWritingDocument(boolean metaData) throws UnrecoverableTimeoutException
MarshallableOutacquireWritingDocument in interface DocumentWrittenacquireWritingDocument in interface MarshallableOutUnrecoverableTimeoutExceptionCopyright © 2023. All rights reserved.