public interface MarshallableOut
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
methodWriter(Class<T> tClass,
Class... additional)
Proxy an interface so each message called is written to a file for replay.
|
default <T> MethodWriterBuilder<T> |
methodWriterBuilder(Class<T> tClass) |
boolean |
recordHistory() |
default void |
writeBytes(net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable) |
default <T> void |
writeDocument(T t,
java.util.function.BiConsumer<ValueOut,T> writer)
Write an object with a custom marshalling.
|
default void |
writeDocument(WriteMarshallable writer)
Write the Marshallable as a document/message
|
default void |
writeMap(Map<?,?> map)
Write a Map as a marshallable
|
default void |
writeMessage(WireKey key,
Object value)
Wrie a key and value which could be a scalar or a marshallable.
|
default void |
writeText(CharSequence text) |
DocumentContext |
writingDocument()
Start a document which is completed when DocumentContext.close() is called.
|
DocumentContext writingDocument()
try(DocumentContext dc = appender.writingDocument()) {
dc.wire().write("message").text("Hello World");
}
boolean recordHistory()
default void writeMessage(WireKey key, Object value)
key - to writevalue - to write with it.default void writeDocument(WriteMarshallable writer)
writer - to writedefault void writeBytes(@NotNull
net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable)
marshallable - to write to excerpt.default <T> void writeDocument(T t,
java.util.function.BiConsumer<ValueOut,T> writer)
t - to writewriter - using this codedefault void writeText(CharSequence text)
text - to write a messagedefault void writeMap(Map<?,?> map)
default <T> T methodWriter(Class<T> tClass, Class... additional)
tClass - primary interfaceadditional - any additional interfacesdefault <T> MethodWriterBuilder<T> methodWriterBuilder(Class<T> tClass)
Copyright © 2016. All rights reserved.