public class TCPChronicleChannel extends net.openhft.chronicle.core.io.SimpleCloseable implements InternalChronicleChannel
MARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
TCPChronicleChannel(ChronicleChannelCfg channelCfg,
ChannelHeader headerOut,
SocketRegistry socketRegistry)
Initiator constructor
|
TCPChronicleChannel(SystemContext systemContext,
ChronicleChannelCfg channelCfg,
SocketChannel sc,
Function<ChannelHeader,ChannelHeader> replaceInHeader,
Function<ChannelHeader,ChannelHeader> replaceOutHeader)
Acceptor constructor
|
| Modifier and Type | Method and Description |
|---|---|
Wire |
acquireProducer() |
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
int |
bufferSize() |
ChronicleChannelCfg |
channelCfg() |
ChronicleChannelCfg |
connectionCfg() |
EventPoller |
eventPoller() |
ChronicleChannel |
eventPoller(EventPoller eventPoller)
Set an EventPoller to include in any background processing.
|
ChannelHeader |
headerIn() |
ChannelHeader |
headerInToUse()
The header in to use based on the acceptors replacement rules.
|
ChannelHeader |
headerOut() |
long |
lastTestMessage() |
protected void |
performClose() |
DocumentContext |
readingDocument() |
void |
releaseProducer() |
boolean |
supportsEventPoller() |
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.
|
clone, 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 TCPChronicleChannel(ChronicleChannelCfg channelCfg, ChannelHeader headerOut, SocketRegistry socketRegistry)
public TCPChronicleChannel(SystemContext systemContext, ChronicleChannelCfg channelCfg, SocketChannel sc, Function<ChannelHeader,ChannelHeader> replaceInHeader, Function<ChannelHeader,ChannelHeader> replaceOutHeader)
public ChronicleChannelCfg channelCfg()
channelCfg in interface ChronicleChannelpublic DocumentContext readingDocument() throws net.openhft.chronicle.core.io.ClosedIORuntimeException
readingDocument in interface MarshallableInnet.openhft.chronicle.core.io.ClosedIORuntimeExceptionprotected void performClose()
performClose in class net.openhft.chronicle.core.io.SimpleCloseablepublic ChannelHeader headerOut()
headerOut in interface ChronicleChannelpublic ChannelHeader headerIn()
headerIn in interface ChronicleChannelpublic ChannelHeader headerInToUse()
InternalChronicleChannelheaderInToUse in interface InternalChronicleChannelpublic DocumentContext writingDocument(boolean metaData) throws UnrecoverableTimeoutException
MarshallableOutwritingDocument in interface DocumentWrittenwritingDocument in interface MarshallableOutUnrecoverableTimeoutExceptionpublic ChronicleChannelCfg connectionCfg()
public void testMessage(long now)
ChronicleChanneltestMessage in interface ChronicleChannelnow - a monotonically increasing timestamppublic long lastTestMessage()
lastTestMessage in interface ChronicleChannelpublic DocumentContext acquireWritingDocument(boolean metaData) throws UnrecoverableTimeoutException
MarshallableOutacquireWritingDocument in interface DocumentWrittenacquireWritingDocument in interface MarshallableOutUnrecoverableTimeoutExceptionpublic boolean supportsEventPoller()
supportsEventPoller in interface InternalChronicleChannelpublic EventPoller eventPoller()
eventPoller in interface InternalChronicleChannelpublic ChronicleChannel eventPoller(EventPoller eventPoller)
InternalChronicleChanneleventPoller in interface InternalChronicleChanneleventPoller - to usepublic Wire acquireProducer()
acquireProducer in interface InternalChronicleChannelpublic void releaseProducer()
releaseProducer in interface InternalChronicleChannelpublic int bufferSize()
bufferSize in interface InternalChronicleChannelCopyright © 2022. All rights reserved.