public interface ChronicleChannel extends net.openhft.chronicle.core.io.Closeable, MarshallableOut, MarshallableIn
MARSHALLABLE_IN_INTERN_SIZE| Modifier and Type | Method and Description |
|---|---|
ChronicleChannelCfg |
channelCfg() |
default Runnable |
eventHandlerAsRunnable(Object eventHandler)
Reading all events and call the same method on the event handler
|
ChannelHeader |
headerIn() |
ChannelHeader |
headerOut() |
long |
lastTestMessage() |
static ChronicleChannel |
newChannel(SocketRegistry socketRegistry,
ChronicleChannelCfg channelCfg,
ChannelHeader headerOut) |
default <T> T |
readOne(StringBuilder eventType,
Class<T> expectedType)
Read one event and return a value
|
void |
testMessage(long now)
Send a test message so the caller can wait for the response via lastTestMessage()
|
close, closeQuietly, closeQuietlyacquireWritingDocument, builder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText, writingDocument, writingDocumentmethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readingDocument, readMap, readText, readTextstatic ChronicleChannel newChannel(SocketRegistry socketRegistry, ChronicleChannelCfg channelCfg, ChannelHeader headerOut)
ChronicleChannelCfg channelCfg()
ChannelHeader headerOut()
ChannelHeader headerIn()
default <T> T readOne(StringBuilder eventType, Class<T> expectedType) throws net.openhft.chronicle.core.io.ClosedIORuntimeException
eventType - of the event readnet.openhft.chronicle.core.io.ClosedIORuntimeException - if this ChronicleChannel is closeddefault Runnable eventHandlerAsRunnable(Object eventHandler)
eventHandler - to handle eventsvoid testMessage(long now)
now - a monotonically increasing timestamplong lastTestMessage()
Copyright © 2022. All rights reserved.