public class VanillaMethodReaderBuilder extends Object implements net.openhft.chronicle.bytes.MethodReaderBuilder
VanillaMethodReaderBuilder class implements the MethodReaderBuilder interface.
It provides a mechanism to create a method reader for deserializing method calls from a wire input.| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_READER_PROXY_CODEGEN |
| Constructor and Description |
|---|
VanillaMethodReaderBuilder(MarshallableIn in)
Constructs a new
VanillaMethodReaderBuilder with the specified wire input. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.openhft.chronicle.bytes.MethodReader |
build(Object... impls)
Constructs and returns a
MethodReader instance using the given implementations. |
static @NotNull WireParselet |
createDefaultParselet(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandlerOnUnknownMethod)
Creates a default
WireParselet that handles unrecognized methods. |
WireParselet |
defaultParselet() |
net.openhft.chronicle.bytes.MethodReaderBuilder |
defaultParselet(WireParselet defaultParselet)
Sets a new default parselet.
|
net.openhft.chronicle.bytes.MethodReaderBuilder |
exceptionHandlerOnUnknownMethod(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandler) |
net.openhft.chronicle.bytes.MethodReaderBuilder |
metaDataHandler(Object... components) |
VanillaMethodReaderBuilder |
methodReaderInterceptorReturns(net.openhft.chronicle.bytes.MethodReaderInterceptorReturns methodReaderInterceptorReturns)
Sets the method reader interceptor that handles return values from method calls.
|
net.openhft.chronicle.bytes.MethodReaderBuilder |
predicate(Predicate<net.openhft.chronicle.bytes.MethodReader> predicate) |
VanillaMethodReaderBuilder |
scanning(boolean scanning)
Configures the reader to skip over metadata and unknown events to find at least one known event.
|
WireType |
wireType()
Returns the
wireType of the reader. |
VanillaMethodReaderBuilder |
wireType(WireType wireType)
Sets the
wireType of the reader. |
public static final String DISABLE_READER_PROXY_CODEGEN
public VanillaMethodReaderBuilder(MarshallableIn in)
VanillaMethodReaderBuilder with the specified wire input.in - The input from which method calls are read.@NotNull public static @NotNull WireParselet createDefaultParselet(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandlerOnUnknownMethod)
WireParselet that handles unrecognized methods.
When an unrecognized method is encountered, it logs a warning or uses
the provided exception handler, depending on the method name's length.exceptionHandlerOnUnknownMethod - The exception handler to use when a method is not recognized.WireParselet that logs or handles unrecognized methods.public WireParselet defaultParselet()
public net.openhft.chronicle.bytes.MethodReaderBuilder defaultParselet(WireParselet defaultParselet)
defaultParselet - The new default parselet.public VanillaMethodReaderBuilder methodReaderInterceptorReturns(net.openhft.chronicle.bytes.MethodReaderInterceptorReturns methodReaderInterceptorReturns)
methodReaderInterceptorReturns in interface net.openhft.chronicle.bytes.MethodReaderBuildermethodReaderInterceptorReturns - The interceptor to set.public net.openhft.chronicle.bytes.MethodReaderBuilder exceptionHandlerOnUnknownMethod(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandler)
exceptionHandlerOnUnknownMethod in interface net.openhft.chronicle.bytes.MethodReaderBuilderpublic WireType wireType()
wireType of the reader.wireType of the reader.public VanillaMethodReaderBuilder wireType(WireType wireType)
wireType of the reader.wireType - The wireType to set.public VanillaMethodReaderBuilder scanning(boolean scanning)
scanning - Whether the reader should skip to the next known event.public net.openhft.chronicle.bytes.MethodReaderBuilder metaDataHandler(Object... components)
metaDataHandler in interface net.openhft.chronicle.bytes.MethodReaderBuilder@NotNull public @NotNull net.openhft.chronicle.bytes.MethodReader build(Object... impls)
MethodReader instance using the given implementations.
If the generated reader instance is not available, it falls back to a default implementation.build in interface net.openhft.chronicle.bytes.MethodReaderBuilderimpls - An array of implementations used by the method reader.MethodReader instance.public net.openhft.chronicle.bytes.MethodReaderBuilder predicate(Predicate<net.openhft.chronicle.bytes.MethodReader> predicate)
predicate in interface net.openhft.chronicle.bytes.MethodReaderBuilderCopyright © 2024. All rights reserved.