public abstract class AbstractGeneratedMethodReader extends Object implements net.openhft.chronicle.bytes.MethodReader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dataEventProcessed |
protected WireParselet |
debugLoggingParselet |
protected MessageHistory |
messageHistory |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGeneratedMethodReader(MarshallableIn in,
WireParselet debugLoggingParselet) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
actualInvoke(Method method,
Object o,
Object[] objects) |
protected <T> T |
checkRecycle(T o)
Offers a workaround to selectively disable "object recycling read" provided by
ValueIn.object(Object, Class)
for specific object types. |
void |
close() |
net.openhft.chronicle.bytes.MethodReader |
closeIn(boolean closeIn) |
void |
historyConsumer(Consumer<MessageHistory> historyConsumer) |
boolean |
isClosed() |
protected static Method |
lookupMethod(Class<?> clazz,
String name,
Class<?>... parameterTypes)
Helper method used by implementations to get a Method
|
net.openhft.chronicle.bytes.MethodReaderInterceptorReturns |
methodReaderInterceptorReturns() |
AbstractGeneratedMethodReader |
predicate(Predicate predicate) |
boolean |
readOne() |
MethodReaderStatus |
readOne0(DocumentContext context) |
protected boolean |
readOneCall(WireIn wireIn)
Deprecated.
|
protected boolean |
readOneCallMeta(WireIn wireIn)
Deprecated.
|
protected MethodReaderStatus |
readOneGenerated(WireIn wireIn)
Reads call name and arguments from the wire and performs invocation on a target object instance.
|
protected MethodReaderStatus |
readOneMetaGenerated(WireIn wireIn) |
protected boolean |
restIgnored() |
void |
scanning(boolean scanning) |
void |
throwExceptionIfClosed() |
protected final WireParselet debugLoggingParselet
protected MessageHistory messageHistory
protected boolean dataEventProcessed
protected AbstractGeneratedMethodReader(MarshallableIn in, WireParselet debugLoggingParselet)
public AbstractGeneratedMethodReader predicate(Predicate predicate)
protected static Method lookupMethod(Class<?> clazz, String name, Class<?>... parameterTypes)
public void historyConsumer(Consumer<MessageHistory> historyConsumer)
historyConsumer - sets a history consumer, which will be called the next message if for a different queue
and the history message is not written to the output queue.
This allows LAST_WRITTEN to still work when there is no output for a give messageprotected MethodReaderStatus readOneGenerated(WireIn wireIn)
GenerateMethodReader.wireIn - Data input.@Deprecated protected boolean readOneCall(WireIn wireIn)
GenerateMethodReader.wireIn - Data input.true read a known event, false if reading should be delegated.protected MethodReaderStatus readOneMetaGenerated(WireIn wireIn)
@Deprecated protected boolean readOneCallMeta(WireIn wireIn)
public MethodReaderStatus readOne0(DocumentContext context)
context - Reading document context.protected boolean restIgnored()
public boolean readOne()
readOne in interface net.openhft.chronicle.bytes.MethodReaderpublic void throwExceptionIfClosed()
public net.openhft.chronicle.bytes.MethodReaderInterceptorReturns methodReaderInterceptorReturns()
methodReaderInterceptorReturns in interface net.openhft.chronicle.bytes.MethodReaderpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.io.QueryCloseablepublic net.openhft.chronicle.bytes.MethodReader closeIn(boolean closeIn)
closeIn in interface net.openhft.chronicle.bytes.MethodReaderprotected <T> T checkRecycle(T o)
ValueIn.object(Object, Class)
for specific object types. This ensures that certain objects, such as arrays and collections, are
not unintentionally reused or recycled during the reading process.T - The generic type of the object to check.o - The object instance to verify and possibly recycle.null if the object is either
null or an array. If the object is a collection or map, the method will clear its
content and return the object.public void scanning(boolean scanning)
Copyright © 2023. All rights reserved.