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)
Workaround to disable "object recycling read"
ValueIn.object(Object, Class) for some 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() |
boolean |
readOne() |
boolean |
readOne0(DocumentContext context) |
protected abstract boolean |
readOneCall(WireIn wireIn)
Reads call name and arguments from the wire and performs invocation on a target object instance.
|
protected boolean |
readOneCallMeta(WireIn wireIn) |
boolean |
readOneMeta(DocumentContext context) |
protected boolean |
restIgnored() |
void |
throwExceptionIfClosed() |
protected final WireParselet debugLoggingParselet
protected MessageHistory messageHistory
protected boolean dataEventProcessed
protected AbstractGeneratedMethodReader(MarshallableIn in, WireParselet debugLoggingParselet)
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 abstract boolean readOneCall(WireIn wireIn)
GenerateMethodReader.wireIn - Data input.true if reading is successful, false if reading should be delegated.protected boolean readOneCallMeta(WireIn wireIn)
public boolean readOne0(DocumentContext context)
context - Reading document context.true if reading is successful, false if reading should be delegated.public boolean readOneMeta(DocumentContext 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 some object types.Copyright © 2022. All rights reserved.