public class MapChannel<VALUE,REPLY>
extends net.openhft.chronicle.core.io.SimpleCloseable
implements net.openhft.chronicle.wire.channel.ChronicleChannel
Constructor and Description |
---|
MapChannel(String mapName,
MapService<VALUE,REPLY> mapService,
net.openhft.chronicle.wire.channel.ChronicleContext context,
net.openhft.chronicle.wire.channel.ChronicleChannelCfg channelCfg) |
Modifier and Type | Method and Description |
---|---|
net.openhft.chronicle.wire.DocumentContext |
acquireWritingDocument(boolean metaData) |
net.openhft.chronicle.wire.channel.ChronicleChannelCfg |
channelCfg() |
static <VALUE,REPLY> |
createMap(String mapName,
MapService<VALUE,REPLY> mapService,
net.openhft.chronicle.wire.channel.ChronicleContext context) |
net.openhft.chronicle.wire.channel.ChannelHeader |
headerIn() |
net.openhft.chronicle.wire.channel.ChannelHeader |
headerOut() |
long |
lastTestMessage() |
<T> T |
methodWriter(Class<T> tClass,
Class... additional) |
net.openhft.chronicle.wire.DocumentContext |
readingDocument() |
void |
testMessage(long now) |
net.openhft.chronicle.wire.DocumentContext |
writingDocument(boolean metaData) |
close, isClosed, performClose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eventHandlerAsRunnable, newChannel, readOne
close, closeQuietly, closeQuietly
builder, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText, writingDocument
methodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readText
public MapChannel(String mapName, MapService<VALUE,REPLY> mapService, net.openhft.chronicle.wire.channel.ChronicleContext context, net.openhft.chronicle.wire.channel.ChronicleChannelCfg channelCfg)
public static <VALUE,REPLY> ChronicleMap<net.openhft.chronicle.bytes.Bytes<?>,VALUE> createMap(String mapName, MapService<VALUE,REPLY> mapService, net.openhft.chronicle.wire.channel.ChronicleContext context) throws IOException
IOException
public net.openhft.chronicle.wire.channel.ChronicleChannelCfg channelCfg()
channelCfg
in interface net.openhft.chronicle.wire.channel.ChronicleChannel
public net.openhft.chronicle.wire.channel.ChannelHeader headerOut()
headerOut
in interface net.openhft.chronicle.wire.channel.ChronicleChannel
public net.openhft.chronicle.wire.channel.ChannelHeader headerIn()
headerIn
in interface net.openhft.chronicle.wire.channel.ChronicleChannel
public void testMessage(long now)
testMessage
in interface net.openhft.chronicle.wire.channel.ChronicleChannel
public long lastTestMessage()
lastTestMessage
in interface net.openhft.chronicle.wire.channel.ChronicleChannel
@NotNull public net.openhft.chronicle.wire.DocumentContext readingDocument()
readingDocument
in interface net.openhft.chronicle.wire.MarshallableIn
@NotNull public <T> T methodWriter(@NotNull Class<T> tClass, Class... additional)
methodWriter
in interface net.openhft.chronicle.wire.MarshallableOut
public net.openhft.chronicle.wire.DocumentContext writingDocument(boolean metaData) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException
writingDocument
in interface net.openhft.chronicle.wire.DocumentWritten
writingDocument
in interface net.openhft.chronicle.wire.MarshallableOut
net.openhft.chronicle.wire.UnrecoverableTimeoutException
public net.openhft.chronicle.wire.DocumentContext acquireWritingDocument(boolean metaData) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException
acquireWritingDocument
in interface net.openhft.chronicle.wire.DocumentWritten
acquireWritingDocument
in interface net.openhft.chronicle.wire.MarshallableOut
net.openhft.chronicle.wire.UnrecoverableTimeoutException
Copyright © 2023. All rights reserved.