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()
Retrieves a producer instance associated with this channel.
|
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
int |
bufferSize()
Returns the size of the buffer used by this channel.
|
ChronicleChannelCfg |
channelCfg()
Retrieves the configuration of the channel.
|
void |
close() |
EventPoller |
eventPoller()
Retrieves the EventPoller instance associated with this channel.
|
ChronicleChannel |
eventPoller(EventPoller eventPoller)
Associates a given EventPoller instance with this channel.
|
ChannelHeader |
headerIn()
Retrieves the header for incoming messages.
|
ChannelHeader |
headerInToUse()
Returns the ChannelHeader to be used for incoming data.
|
ChannelHeader |
headerOut()
Retrieves the header for outgoing messages.
|
boolean |
isClosed() |
long |
lastTestMessage()
Retrieves the highest timestamp received from the test messages.
|
DocumentContext |
readingDocument() |
boolean |
recordHistory() |
void |
releaseProducer()
Releases the producer instance previously acquired with acquireProducer().
|
boolean |
supportsEventPoller()
Determines if the current channel supports the EventPoller mechanism for polling events.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteventHandlerAsRunnable, newChannel, readOnebuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, 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()
ChronicleChannelchannelCfg in interface ChronicleChannelpublic ChannelHeader headerOut()
ChronicleChannelheaderOut in interface ChronicleChannelpublic ChannelHeader headerIn()
ChronicleChannelheaderIn in interface ChronicleChannelpublic ChannelHeader headerInToUse()
InternalChronicleChannelheaderInToUse in interface InternalChronicleChannelpublic void testMessage(long now)
ChronicleChanneltestMessage in interface ChronicleChannelnow - a monotonically increasing timestamppublic long lastTestMessage()
ChronicleChannellastTestMessage 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()
InternalChronicleChannelsupportsEventPoller in interface InternalChronicleChannelpublic EventPoller eventPoller()
InternalChronicleChanneleventPoller in interface InternalChronicleChannelpublic ChronicleChannel eventPoller(EventPoller eventPoller)
InternalChronicleChanneleventPoller in interface InternalChronicleChanneleventPoller - the EventPoller instance to associate with this channel.public WireOut acquireProducer()
InternalChronicleChannelacquireProducer in interface InternalChronicleChannelpublic void releaseProducer()
InternalChronicleChannelreleaseProducer in interface InternalChronicleChannelpublic int bufferSize()
InternalChronicleChannelbufferSize in interface InternalChronicleChannelpublic boolean recordHistory()
recordHistory in interface MarshallableOutCopyright © 2023. All rights reserved.