public class BinaryBytesMethodWriterInvocationHandler extends net.openhft.chronicle.core.util.AbstractInvocationHandler implements BytesMethodWriterInvocationHandler
InvocationHandler that serialises method calls to a
BytesOut using a MethodEncoder per method. Intended for proxy
based one-way messaging.| Constructor and Description |
|---|
BinaryBytesMethodWriterInvocationHandler(Class<?> tClass,
Function<Method,MethodEncoder> methodToId,
BytesOut<?> out)
Creates an instance for the supplied interface.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doInvoke(Object proxy,
Method method,
Object[] args)
Encodes the invocation and writes it to
out. |
invoke, onCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCloseinvokepublic BinaryBytesMethodWriterInvocationHandler(Class<?> tClass, Function<Method,MethodEncoder> methodToId, BytesOut<?> out)
tClass - interface being proxiedmethodToId - lookup supplying a MethodEncoder per methodout - target stream for the encoded callsprotected Object doInvoke(Object proxy, Method method, Object[] args) throws IllegalStateException, BufferOverflowException, BufferUnderflowException, IllegalArgumentException, ArithmeticException, net.openhft.chronicle.core.io.InvalidMarshallableException
out. On failure the
write position is rolled back to preserve stream integrity.doInvoke in class net.openhft.chronicle.core.util.AbstractInvocationHandlerIllegalStateExceptionBufferOverflowExceptionBufferUnderflowExceptionIllegalArgumentExceptionArithmeticExceptionnet.openhft.chronicle.core.io.InvalidMarshallableExceptionCopyright © 2026 Chronicle Software Ltd. All rights reserved.