public class BytesMethodReaderBuilder extends Object implements MethodReaderBuilder
Constructor and Description |
---|
BytesMethodReaderBuilder(BytesIn<?> in)
Constructor for BytesMethodReaderBuilder.
|
Modifier and Type | Method and Description |
---|---|
BytesMethodReader |
build(Object... objects)
Constructs the BytesMethodReader instance with the specified components.
|
BytesParselet |
defaultParselet()
Returns the default BytesParselet for this builder.
|
BytesMethodReaderBuilder |
defaultParselet(BytesParselet defaultParselet)
Sets the default BytesParselet for this builder.
|
MethodReaderBuilder |
exceptionHandlerOnUnknownMethod(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandler)
Sets the ExceptionHandler instance to use when an unknown method is encountered.
|
MethodReaderBuilder |
metaDataHandler(Object... components)
Throws an UnsupportedOperationException when called.
|
MethodEncoderLookup |
methodEncoderLookup()
Returns the current MethodEncoderLookup function.
|
BytesMethodReaderBuilder |
methodEncoderLookup(MethodEncoderLookup methodEncoderLookup)
Sets the MethodEncoderLookup function for this builder.
|
MethodReaderBuilder |
methodReaderInterceptorReturns(MethodReaderInterceptorReturns methodReaderInterceptorReturns)
Throws an UnsupportedOperationException when called.
|
MethodReaderBuilder |
warnMissing(boolean warnMissing)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
predicate
public BytesMethodReaderBuilder(BytesIn<?> in)
in
- the BytesIn object from which serialized method calls are read.net.openhft.chronicle.core.io.ClosedIllegalStateException
- If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException
- If this resource was accessed by multiple threads in an unsafe waypublic MethodReaderBuilder exceptionHandlerOnUnknownMethod(net.openhft.chronicle.core.onoes.ExceptionHandler exceptionHandler)
exceptionHandlerOnUnknownMethod
in interface MethodReaderBuilder
exceptionHandler
- the ExceptionHandler instance@Deprecated public MethodReaderBuilder warnMissing(boolean warnMissing)
This method is deprecated and will always return this
, effectively making it a no-op.
warnMissing
in interface MethodReaderBuilder
warnMissing
- if true
, warnings will be logged for unknown methods;
if false
, debug-level messages will be logged insteadpublic MethodEncoderLookup methodEncoderLookup()
public BytesMethodReaderBuilder methodEncoderLookup(MethodEncoderLookup methodEncoderLookup)
methodEncoderLookup
- the MethodEncoderLookup functionpublic BytesParselet defaultParselet()
public BytesMethodReaderBuilder defaultParselet(BytesParselet defaultParselet)
defaultParselet
- the default BytesParseletpublic MethodReaderBuilder methodReaderInterceptorReturns(MethodReaderInterceptorReturns methodReaderInterceptorReturns)
methodReaderInterceptorReturns
in interface MethodReaderBuilder
methodReaderInterceptorReturns
- the interceptor instanceUnsupportedOperationException
- alwayspublic MethodReaderBuilder metaDataHandler(Object... components)
metaDataHandler
in interface MethodReaderBuilder
components
- the metadata handlersUnsupportedOperationException
- alwayspublic BytesMethodReader build(Object... objects)
build
in interface MethodReaderBuilder
objects
- the components for the BytesMethodReaderCopyright © 2023. All rights reserved.