public class MethodWriterInvocationHandlerSupplier extends Object implements Supplier<net.openhft.chronicle.bytes.MethodWriterInvocationHandler>
MethodWriterInvocationHandlerSupplier class is an implementation of the Supplier interface
for providing instances of MethodWriterInvocationHandler. This supplier offers a series of
configurations which influence the behavior of the generated MethodWriterInvocationHandler instances.
Configurable behaviors include thread safety, recording history, and more.| Constructor and Description |
|---|
MethodWriterInvocationHandlerSupplier(Supplier<net.openhft.chronicle.bytes.MethodWriterInvocationHandler> supplier)
Constructs a new
MethodWriterInvocationHandlerSupplier with a delegate supplier. |
| Modifier and Type | Method and Description |
|---|---|
void |
disableThreadSafe(boolean disableThreadSafe)
Sets the configuration for thread safety.
|
void |
genericEvent(String genericEvent)
Sets the generic event to be associated with the handler.
|
net.openhft.chronicle.bytes.MethodWriterInvocationHandler |
get() |
void |
onClose(net.openhft.chronicle.core.io.Closeable closeable)
Sets a
Closeable instance to be invoked when closing. |
void |
recordHistory(boolean recordHistory)
Sets the configuration for recording history.
|
void |
useMethodIds(boolean useMethodIds)
Configures whether to use method IDs.
|
public MethodWriterInvocationHandlerSupplier(Supplier<net.openhft.chronicle.bytes.MethodWriterInvocationHandler> supplier)
MethodWriterInvocationHandlerSupplier with a delegate supplier.supplier - The delegate supplier that provides base instances of MethodWriterInvocationHandler.public void recordHistory(boolean recordHistory)
recordHistory - Whether to enable history recording.public void onClose(net.openhft.chronicle.core.io.Closeable closeable)
Closeable instance to be invoked when closing.closeable - The Closeable instance.public void disableThreadSafe(boolean disableThreadSafe)
disableThreadSafe - Whether to disable thread safety.public void genericEvent(String genericEvent)
genericEvent - The generic event as a string.public void useMethodIds(boolean useMethodIds)
useMethodIds - Whether to enable method IDs.Copyright © 2024. All rights reserved.