public class WireExchanger extends net.openhft.chronicle.core.io.SimpleCloseable implements MarshallableOut
| Constructor and Description |
|---|
WireExchanger() |
WireExchanger(int initCapacity) |
| Modifier and Type | Method and Description |
|---|---|
Wire |
acquireConsumer() |
Wire |
acquireProducer() |
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
int |
lock() |
protected void |
performClose() |
void |
releaseConsumer() |
void |
releaseProducer() |
DocumentContext |
writingDocument(boolean metaData)
Start a new DocumentContext, must always call close() when done.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText, writingDocumentreferenceId, referenceName, temporarypublic WireExchanger()
public WireExchanger(int initCapacity)
protected void performClose()
performClose in class net.openhft.chronicle.core.io.SimpleCloseablepublic Wire acquireProducer()
public void releaseProducer()
public Wire acquireConsumer()
public int lock()
throws IllegalStateException
IllegalStateExceptionpublic void releaseConsumer()
public DocumentContext writingDocument(boolean metaData)
MarshallableOutwritingDocument in interface DocumentWrittenwritingDocument in interface MarshallableOutpublic DocumentContext acquireWritingDocument(boolean metaData)
MarshallableOutacquireWritingDocument in interface DocumentWrittenacquireWritingDocument in interface MarshallableOutCopyright © 2023. All rights reserved.