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() |
ChannelHeader |
headerIn() |
ChannelHeader |
headerOut() |
long |
lastTestMessage() |
DocumentContext |
readingDocument() |
void |
testMessage(long now)
Send a test message so the caller can wait for the 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()
channelCfg in interface ChronicleChannelpublic ChannelHeader headerOut()
headerOut in interface ChronicleChannelpublic ChannelHeader headerIn()
headerIn in interface ChronicleChannelpublic void testMessage(long now)
ChronicleChanneltestMessage in interface ChronicleChannelnow - a monotonically increasing timestamppublic long lastTestMessage()
lastTestMessage 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 © 2022. All rights reserved.