public class DelegateChronicleChannel extends Object implements InternalChronicleChannel, net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected InternalChronicleChannel |
channel |
MARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
DelegateChronicleChannel(InternalChronicleChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
WireOut |
acquireProducer() |
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
int |
bufferSize() |
ChronicleChannelCfg |
channelCfg() |
void |
close() |
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() |
boolean |
isClosed() |
long |
lastTestMessage() |
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, readOnebuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText, writingDocumentmethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readTextprotected final InternalChronicleChannel channel
public DelegateChronicleChannel(InternalChronicleChannel channel)
public ChronicleChannelCfg channelCfg()
channelCfg in interface ChronicleChannelpublic ChannelHeader headerOut()
headerOut in interface ChronicleChannelpublic ChannelHeader headerIn()
headerIn in interface ChronicleChannelpublic ChannelHeader headerInToUse()
InternalChronicleChannelheaderInToUse in interface InternalChronicleChannelpublic void testMessage(long now)
ChronicleChanneltestMessage in interface ChronicleChannelnow - a monotonically increasing timestamppublic long lastTestMessage()
lastTestMessage in interface ChronicleChannelpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.io.QueryCloseablepublic 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 MarshallableOutUnrecoverableTimeoutExceptionpublic boolean supportsEventPoller()
supportsEventPoller in interface InternalChronicleChannelpublic EventPoller eventPoller()
eventPoller in interface InternalChronicleChannelpublic ChronicleChannel eventPoller(EventPoller eventPoller)
InternalChronicleChanneleventPoller in interface InternalChronicleChanneleventPoller - to usepublic WireOut acquireProducer()
acquireProducer in interface InternalChronicleChannelpublic void releaseProducer()
releaseProducer in interface InternalChronicleChannelpublic int bufferSize()
bufferSize in interface InternalChronicleChannelCopyright © 2022. All rights reserved.